LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 06-05-2014, 01:45 PM   #1
listless
LQ Newbie
 
Registered: Dec 2008
Posts: 4

Rep: Reputation: 0
File manager sorting by name puts files in the wrong order?


I have created a directory containing the following files:
a
m1111B
m999A
z

When I open that direcory in _any_ file manager and ask it to sort them by name they are listed in the following order:
a
m999A
m1111B
z

Can anyone else reproduce this? I get the exact same behaviour in Nautilus, Dolphin, Konqueror, Thunar. I'm using KDE4 on a mythbuntu install (I think based on ubuntu 12). The supplied file names are just examples, the same thing happens with many files with combinations of numbers and letters. The pattern seems to be something to do with ignoring the numbers and sorting based on the letters but I can't quite pin down what the rule is. Needless to say that ls and sort both put m1111B before m999A. Even while writing this post I selected the 4 files and copy/pasted them into this text window to get the same ordering, but they pasted in the right order?!

I'm sorry for posting this to such a general forum but, assuming this is a bug, I have no idea bit of my setup is responsible so I don't know which specific support forum to post to - And because the search terms are so generic I'm finding it hard to search for duplicate reports.
 
Old 06-05-2014, 03:26 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,921

Rep: Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618
Something like this?

http://askubuntu.com/questions/10896...e-collating-se
 
1 members found this post helpful.
Old 06-05-2014, 04:47 PM   #3
listless
LQ Newbie
 
Registered: Dec 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Ah! that'll be it then. Thanks very much. "Collate" was the word I was missing.

Unfortunately this does not appear to be a problem related to LC_COLLATE. In a terminal I can set LC_COLLATE=C or POSIX or en_GB.UTF-8 and all they do is change the treatment of capital letters in this case. the 1111 string always appears ahead of 999. So I guess the file managers (via KDE? Qt?) are getting locale configurations from a source other than the system default?
Oh well. At least I have a billion or so related search results to look through now. The anser will be in there somewhere
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Questions about sorting files between BASH and file navigators SilversleevesX Linux - Newbie 1 01-27-2012 02:17 AM
[SOLVED] Perl printing to file in the wrong order druisgod Programming 4 05-02-2011 12:03 PM
Sorting months in order (C++) Sunny001 Programming 3 08-11-2009 03:07 AM
Sorting by numerical order shoemoodoshaloo Linux - Newbie 3 07-21-2009 03:52 PM
Using konqueror .directory file for sorting files? Frank64 Linux - Software 2 04-24-2008 07:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 03:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration