Page 1 of 1

Sorted by Date is lexical but not numeric now...

Posted: Mon May 31, 2021 11:33 pm
by Litr
I swear it used to be numeric somewhere up to 0.97.2, but in newer version(s) (0.98.3 in my case) i noticed it became lexical which is really unfortunate.

This applies to both browser and viewer modes.

I hope this is not intended behavior and can be fixed. :bugfixed:

Some examples:

When sorted by date (both for normal and reversed states) it is now with lexical sorting :( :
1.jpg
10.jpg
11.jpg
12.jpg
13.jpg
14.jpg
15.jpg
16.jpg
17.jpg
18.jpg
19.jpg
2.jpg
20.jpg
21.jpg
22.jpg
23.jpg
3.jpg
4.jpg
5.jpg
6.jpg
7.jpg
8.jpg
9.jpg

or reversed

9.jpg
8.jpg
7.jpg
6.jpg
5.jpg
4.jpg
3.jpg
23.jpg
22.jpg
21.jpg
20.jpg
2.jpg
19.jpg
18.jpg
17.jpg
16.jpg
15.jpg
14.jpg
13.jpg
12.jpg
11.jpg
10.jpg
1.jpg

When sorted by type everything is like it used to be - with numeric sorting:
1.jpg
2.jpg
3.jpg
4.jpg
5.jpg
6.jpg
7.jpg
8.jpg
9.jpg
10.jpg
11.jpg
12.jpg
13.jpg
14.jpg
15.jpg
16.jpg
17.jpg
18.jpg
19.jpg
20.jpg
21.jpg
22.jpg
23.jpg

or reversed

23.jpg
22.jpg
21.jpg
20.jpg
19.jpg
18.jpg
17.jpg
16.jpg
15.jpg
14.jpg
13.jpg
12.jpg
11.jpg
10.jpg
9.jpg
8.jpg
7.jpg
6.jpg
5.jpg
4.jpg
3.jpg
2.jpg
1.jpg

Re: Sorted by Date is lexical but not numeric now...

Posted: Tue Jun 01, 2021 9:21 am
by xnview
'numeric order' is selected?

Re: Sorted by Date is lexical but not numeric now...

Posted: Tue Jun 01, 2021 4:42 pm
by Litr
xnview wrote: Tue Jun 01, 2021 9:21 am 'numeric order' is selected?
I am sorry, but I didn't understand this question. Did i missed an option in XnView MP?

Re: Sorted by Date is lexical but not numeric now...

Posted: Tue Jun 01, 2021 6:06 pm
by cday
Litr wrote: Tue Jun 01, 2021 4:42 pm
xnview wrote: Tue Jun 01, 2021 9:21 am 'numeric order' is selected?
I am sorry, but I didn't understand this question. Did i missed an option in XnView MP?
When View > Sort by > Date has been selected, do neither Sort by > Name nor Sort by > Name (not numeric) give the sort order you want?

I'm sorry, I can't quickly set up a test to check the effect of these options...

Re: Sorted by Date is lexical but not numeric now...

Posted: Tue Jun 01, 2021 8:44 pm
by Litr
Ah yeah, it was set on numeric. I haven't touched this menu for a very long time so i missed it.

I tested all three of these sorting modes while still Sorted by Date (Modified) and the order of the numbers has not changed. Maybe it just does not work anymore?
It used to work. I would have noticed this a long time ago if it didn't...

Re: Sorted by Date is lexical but not numeric now...

Posted: Wed Jun 02, 2021 7:45 am
by xnview
your files have same date, right?

Re: Sorted by Date is lexical but not numeric now...

Posted: Wed Jun 02, 2021 8:04 am
by Litr
xnview wrote: Wed Jun 02, 2021 7:45 am your files have same date, right?
Yes

Re: Sorted by Date is lexical but not numeric now...

Posted: Wed Jun 02, 2021 9:08 am
by xnview
:bugconfirmed: Thanks to your detailed description I can reproduce the problem.

Re: Sorted by Date is lexical but not numeric now...

Posted: Thu Sep 16, 2021 12:25 pm
by xnview
This problem is supposed to be fixed in XnView MP 0.99.0. Please check and confirm the bug fix here.

Re: Sorted by Date is lexical but not numeric now...

Posted: Sun Sep 19, 2021 12:13 pm
by Litr
xnview wrote: Thu Sep 16, 2021 12:25 pm This problem is supposed to be fixed in XnView MP 0.99.0. Please check and confirm the bug fix here.
Awesome job, now it works like it used to be. Thank you! :D