Page 1 of 1
Natural Numeric Sort Order
Posted: 15 Sep 2005 17:58
by jacky
Just noticed a little bug when using the Natural Numeric Sort Order, now it seems that files starting with numbers are always on top of the list, even before files starting with "special characters" like ! - or #
Strangely, the NNSO seems to be used also on the treeview, but in it folders starting with the "special characters" are BEFORE the ones starting with numbers (like they should be), unlike in the listview....
Re: Natural Numeric Sort Order
Posted: 15 Sep 2005 19:19
by admin
jacky wrote:Strangely, the NNSO seems to be used also on the treeview, but in it folders starting with the "special characters" are BEFORE the ones starting with numbers (like they should be), unlike in the listview....
Well, interesting. You have detected a little trick I use to sort folders apart from files in the list (a trick obviously not needed in the tree): I prefix all foldernames with "a" and all filenames with "b" in my internal buffer, then sort, and then cut the first letter before display or usage of the name.
Unfortunately, as you pointed out, the NNSO function I use (it comes with XP) does a strange thing here, one might even call it a bug: it sorts "!" < "2", but "a!" > "a2"

... that explains what you see.
Unfortunately again, I cannot do anything here (ok, I will not

). We all gotta stand it.
Posted: 15 Sep 2005 21:37
by jacky
Allright... yeah that's probably a bug in there

Besides if you used 0 and a instead of a and b folders would be in the right order, but not files... and I need this for files (cause I've a lot of !filename.ext that I want on top of my list) so I'll probably turn the NNSO off and enable it only when I need it