0.64 win-x64: strange sorting with some characters

*** Please try to reproduce your bug and confirm the bug fix. ***

Moderators: xnview, Dreamer

ManOnTheStreet
Posts: 1
Joined: Sun Mar 16, 2014 2:24 pm

0.64 win-x64: strange sorting with some characters

Post by ManOnTheStreet »

Hello, I noticed that when the names of files contain some characters XnViewMP sorts them pretty strange. Here is some examples.
1_normal_sorting.png
That's the list of the files with names consisting of letters from russian alphabet: https://en.wikipedia.org/wiki/Russian_alphabet The picture above demonstrates how it must be sorted (it's screenshot from Windows File Explorer). And here is how XnViewMP sorts them:
2_strange_sorting.png
Strange, but when I sort it by name (not numeric) they're sorted as it should be. But this is not what I want because it's not numeric sorting, so 100.jpg goes before 19.jpg.
3_not_numeric_sorting.png
XnViewMP sorting acts weird not only with russian characters. Here is how one folder with pictures looks like in Windows:
4_another_normal_sorting.png
And how it looks like in XnViewMP:
5_another_strange_sorting.png
There's a problem with dash, I guess. And there must be other characters the program has problem with.
You do not have the required permissions to view the files attached to this post.
User avatar
m.Th.
XnThusiast
Posts: 1676
Joined: Wed Aug 16, 2006 6:31 am

Re: 0.64 win-x64: strange sorting with some characters

Post by m.Th. »

Yes - I confirm this bug. It happens with Greek characters also. Yes, it seems that, beside some non-latin chars, the programs put in front the "_" as well as the shortcuts (lnk files).
m. Th.

- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
User avatar
xnview
Author of XnView
Posts: 47518
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: 0.64 win-x64: strange sorting with some characters

Post by xnview »

could you send me in a text file the filename list to reproduce?
Pierre.
User avatar
xnview
Author of XnView
Posts: 47518
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: 0.64 win-x64: strange sorting with some characters

Post by xnview »

See Issue 305 for current status and details.
Pierre.
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: 0.64 win-x64: strange sorting with some characters

Post by helmut »

This problem is supposed to be fixed in XnView MP 0.66 or later. Could you please try and confirm the bug fix, ManOnTheStreet?