On Thu, 9 Apr 2009 20:53:45 -0400 Grégory SCHMITT <gy.schmitt@xxxxxxxxx> wrote: > Hello, > > I was wondering why the sorting order of items in a pane is sometimes > different from an app to another. > > For example, I have the following files in a folder. emelFM2 (and ls > -1) will give this output: > > Gregory SCHMITT - resume.doc > Gregory SCHMITT - resume - hospitality.doc > Gregory SCHMITT - resume - hospitality.odt > Gregory SCHMITT - resume - hospitality.pdf > Gregory SCHMITT - resume - hospitality.txt > Gregory SCHMITT - resume.odt > Gregory SCHMITT - resume.pdf > Gregory SCHMITT - resume.txt > > On the other hand, a file selection dialog, or mc will give > > Gregory SCHMITT - resume - hospitality.doc > Gregory SCHMITT - resume - hospitality.odt > Gregory SCHMITT - resume - hospitality.pdf > Gregory SCHMITT - resume - hospitality.txt > Gregory SCHMITT - resume.doc > Gregory SCHMITT - resume.odt > Gregory SCHMITT - resume.pdf > Gregory SCHMITT - resume.txt > > which, IMHO, makes more sense. Is it just a case of ignoring the file > extension first, and then sorting with the extension included or is it > something more complex? I can't comment on the others, but e2 uses glib functionality which, according to API information, "compares strings for ordering using the linguistically correct rules for the current locale" but with special treatment of any ".". Maybe it's that special treatment which is mis-behaving ? Regards Tom -- Users can unsubscribe from the list by sending email to emelfm2-request@xxxxxxxxxxxxx with 'unsubscribe' in the subject field or by logging into the web interface.