The order of categories in Catalog Filter is not correct in 1.8.5

*** Please report new bugs here! ***

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
hjaki
Posts: 10
Joined: Wed Feb 21, 2024 12:59 pm

The order of categories in Catalog Filter is not correct in 1.8.5

Post by hjaki »

The order of categories in Catalog Filter is not correct in 1.8.5

After upgrading from 1.8.2 to 1.8.5, the order of “-” in Catalog Filter categories has changed.

Order in 1.8.2
 +
 -
 1
 a


Order of 1.8.5
 +
 1
 a
 -

If I rename any of the categories in 1.8.5, they are in the same order as in 1.8.2.
However, when I quit XnView and start it again, it reverts back to the original.

The order seems to change depending on the next letter of “+” or “-”, but only the position of “-” is wrong.
User avatar
user0
XnThusiast
Posts: 2411
Joined: Sat May 09, 2015 9:37 am

Re: The order of categories in Catalog Filter is not correct in 1.8.5

Post by user0 »

+1
there should not be pre/post restart difference in sort order (collation) and the correct one must be applied right after creating a new object

However, both orders you posted are wrong, it should be like in windows (- + 1 a).
Clean install of the app may help, as in my 1.8.5 the sort order is correct after app restart.

ref
reddit
unicode collation
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: The order of categories in Catalog Filter is not correct in 1.8.5

Post by xnview »

i can't reproduce, the order is "+ - 1 a"
Pierre.
hjaki
Posts: 10
Joined: Wed Feb 21, 2024 12:59 pm

Re: The order of categories in Catalog Filter is not correct in 1.8.5

Post by hjaki »

Does it work differently in different languages?
I am using Japanese.
Here is a screenshot.
Attachments
categories.jpg
categories.jpg (27.61 KiB) Viewed 1337 times
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: The order of categories in Catalog Filter is not correct in 1.8.5

Post by xnview »

the sort order is localized
Pierre.
hjaki
Posts: 10
Joined: Wed Feb 21, 2024 12:59 pm

Re: The order of categories in Catalog Filter is not correct in 1.8.5

Post by hjaki »

The problem also occurs with clean installations.
Please try to reproduce it with the Japanese version 1.8.5
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: The order of categories in Catalog Filter is not correct in 1.8.5

Post by xnview »

with japanese windows explorer, which order do you have for '+ - 1 a'?
Pierre.
hjaki
Posts: 10
Joined: Wed Feb 21, 2024 12:59 pm

Re: The order of categories in Catalog Filter is not correct in 1.8.5

Post by hjaki »

The problem this time is that 1.8.5 has changed the order of the files at startup from the previous version.
When renamed, the order is the same as in 1.8.2.
I would like the order to be the same as when it was renamed when it was launched.

Because the Japanese sort order in Windows is very complicated.
I don't know the correct answer because I can't find any official documentation.
There are more than 10,000 characters and the order changes depending on whether the second character is alphanumeric, hiragana, katakana, or kanji.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: The order of categories in Catalog Filter is not correct in 1.8.5

Post by xnview »

you can add in xnview.ini [%General] localizedSortCategory=false
Pierre.
hjaki
Posts: 10
Joined: Wed Feb 21, 2024 12:59 pm

Re: The order of categories in Catalog Filter is not correct in 1.8.5

Post by hjaki »

What do you mean?
Does that mean this is not a bug?
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: The order of categories in Catalog Filter is not correct in 1.8.5

Post by xnview »

There is a change in 1.8.5 with sorting on some languages.
If you want same behavior, you can edit your xnview.ini and add localizedSortCategory=false
Pierre.
Post Reply