I sometimes encounter a difference between how my Window Explorer sorts files and how IrfanView sorts files. I never fully investigated why this was, but it started to become annoying today, so I investigated it. Note that I did this with a Dutch version of Windows XP, but I think this bug is not directly related to the languague.
Assume a folder with the following file names:
0001.jpg
001.jpg
01c.jpeg
0002.jpg
002.jpg
-002.jpg
03.jpg
The attachment shows how Window Explorer sorts these.
However in IrfanView the sort order is different when using the Option > Sort Directory Files > by Name (ascending, XP Style). In IrfanView the order becomes:
-002.jpg
01c.jpeg
03.jpg
001.jpg
002.jpg
0001.jpg
0002.jpg
PS, This is probably hard to fix as one has to reverse engineer the way the Windows Shell sorts. Microsoft probably made a Shell sort function, but I bet that it's only implemented on Windows XP and higher. Maybe someone knows the correct pseudo algorithm?
Assume a folder with the following file names:
0001.jpg
001.jpg
01c.jpeg
0002.jpg
002.jpg
-002.jpg
03.jpg
The attachment shows how Window Explorer sorts these.
However in IrfanView the sort order is different when using the Option > Sort Directory Files > by Name (ascending, XP Style). In IrfanView the order becomes:
-002.jpg
01c.jpeg
03.jpg
001.jpg
002.jpg
0001.jpg
0002.jpg
PS, This is probably hard to fix as one has to reverse engineer the way the Windows Shell sorts. Microsoft probably made a Shell sort function, but I bet that it's only implemented on Windows XP and higher. Maybe someone knows the correct pseudo algorithm?
Comment