Page 1 of 1

1.98 Wrong file sorting

Posted: Tue Jun 07, 2011 4:29 pm
by scooterXnview
The bug is verified on XnView 1.98 German, Windows XP SP3.

Sorting is 'a.htm, a1.htm' for files and 'a1-files' and 'a-files' for the companion folders.

Re: 1.98 Wrong file sorting

Posted: Wed Jun 08, 2011 9:00 am
by xnview
No i have a1-files.ext, a1.ext, a-files.ext, a.ext

Re: 1.98 Wrong file sorting

Posted: Fri Jun 10, 2011 2:42 pm
by scooterXnview
Hi Pierre,

unfortunately, I can't find by now my folder tree I watched this issue in. But I assure you that my observation was correct. By the way, I had activated the new sorting algorithm which came with Windows XP which, as I recall, is the default behavior of Windows XP. And my sort order in XnView's Browser is 'name (numeric).'

All Windows versions before Windows XP used a binary sorting algorithm for sorting files. This resulted in a file listing like "File 1.doc, File 10.doc, File 2.doc." As you can see, files with decimal parts are not sorted as you would expect it, "1,2,10," but instead binary. That way, "10" comes before "2." Since Windows XP, Windows uses a new character-based sorting algorithm that respects the logical order of filenames, so "10" comes AFTER "2." For example, the above noted example will list "File 1.doc, File 2.doc, File 10.doc" with XP.

When I find the folder with the issue again, I'll make a snapshot of it for you.