1.98 Wrong file sorting

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: helmut, XnTriq, xnview

Post Reply
scooterXnview
Posts: 21
Joined: Tue Jun 07, 2011 4:16 pm

1.98 Wrong file sorting

Post 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.
User avatar
xnview
Author of XnView
Posts: 46255
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.98 Wrong file sorting

Post by xnview »

No i have a1-files.ext, a1.ext, a-files.ext, a.ext
Pierre.
scooterXnview
Posts: 21
Joined: Tue Jun 07, 2011 4:16 pm

Re: 1.98 Wrong file sorting

Post 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.
Post Reply