With "ls" the following files are sorted as I want as:
026 046 048 08f 28f 46a
but in file manager (I have tried nautilus, nemo and pcmanfm) they are sorted as:
08f 026 28f 046 46a 048
At this article says you can affect sort order in file browser using:
export LC_COLLATE=C; nemo&
But I tried this and the sort order is still the same - numerically not alphabetical.
Is there away of getting any file manager to sort as
ls does by some option in preferences or by setting a variable such as
Extra information on why files are sorted numerically for those interested :
the reason given for sorting numerically goes something like a user expects the following files to be ordered numerically like:
8 9 10 11 101
and not alphabetically like:
10 101 11 8 9
and where as I can see this point:
- If files are ordered alphabetically, then you simply need to pad files with a zero, to make them ordered numerically (easy to script using printf "%03d" ), but there is nothing you can pad files that are ordered numerically to order them alphabetically.
It is not obvious how the files ordered numerically at the top of this post are sorted - I spent 30 mins creating various files and could not figure out how they were being sorted and had to resort to Google to work it out, where as it is a lot easier to workout that "numbered" files like 10,101,11,8,9 are ordered alphabetically.
Even AFTER I knew files were ordered numerically it still took a while to understand, and hard to locate the files I wanted (I have over 70 files to look through) - point in case is the comment by "muru" who says they couldn't see how 08f comes before 026 numerically and they have a reputation of over 100,000, so is clearly very intelligent. In contrast, when you know files are ordered alphabetically it is easy to understand how the "numbered" files are sorted and easy to locate them.
I don't mind the default being to sort numerically in a file browser as long as there is an option to change default to sort alphabetically, so surely there is a file manager that has this option or that uses "LC_COLLATE"