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.
1.98 Wrong file sorting
Moderators: helmut, XnTriq, xnview
-
- Posts: 21
- Joined: Tue Jun 07, 2011 4:16 pm
Re: 1.98 Wrong file sorting
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.
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.