How to get true ASCII sort order

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Carl
Posts: 3
Joined: 01 May 2019 10:47

How to get true ASCII sort order

Post by Carl »

I have lots of image files that I upload to my web server, where they are listed and used in true ASCII sort order. In XYplorer you can uncheck "Natural numeric sort order", but it doesn't give you true ASCII sort order. It is probably the same algorithm as used by Windows Explorer when you set NoStrCmpLogical in the registry. This is a strange sort order where among others hyphens appear to be ignored. An example:

Natural numeric sort order On:
2011-001.jpg
2011-002.jpg
2011-003.jpg
2011-015.jpg
2011-031.jpg
2011-036.jpg
2011-054.jpg
2011-KrabbenReker.jpg
2011-PaaSturesBaat.jpg
20101226-BirkMorfarPaaSkitur.jpg
20110131-1752-001.jpg
20110131-1752-002.jpg
20110409-1735-IMAG0004.jpg

Natural numeric sort order Off:
20101226-BirkMorfarPaaSkitur.jpg
2011-001.jpg
2011-002.jpg
2011-003.jpg
20110131-1752-001.jpg
20110131-1752-002.jpg
2011-015.jpg
2011-031.jpg
2011-036.jpg
20110409-1735-IMAG0004.jpg
2011-054.jpg
2011-KrabbenReker.jpg
2011-PaaSturesBaat.jpg

The true ASCII sort order, which is the one I want , is:
20101226-BirkMorfarPaaSkitur.jpg
2011-001.jpg
2011-002.jpg
2011-003.jpg
2011-015.jpg
2011-031.jpg
2011-036.jpg
2011-054.jpg
2011-KrabbenReker.jpg
2011-PaaSturesBaat.jpg
20110131-1752-001.jpg
20110131-1752-002.jpg
20110409-1735-IMAG0004.jpg

Is there a way to accomplish that in XYplorer?
I believe there ought to be a setting in Configuration under Sort and Rename for "true ASCII sort order", whcih is the order used by web servers and many other programs.

Thanks.
Carl

admin
Site Admin
Posts: 60526
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: How to get true ASCII sort order

Post by admin »

Interesting point! I was fully not aware of this. I'll see into it right now...

admin
Site Admin
Posts: 60526
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: How to get true ASCII sort order

Post by admin »

OK, it looks like there are three possible sort orders that I can offer:

Textual (A == a) AND Natural Numeric = Configuration | General | Sort and Rename | Sort | Natural numeric sort order -> ON
Textual (A == a) AND not Natural Numeric = Configuration | General | Sort and Rename | Sort | Natural numeric sort order -> OFF
Binary (A != a) AND not Natural Numeric = (That's what you want, and it would be a new option)*

* Yes, that hyphen problem is tight to the API that provides the (A == a) sorting.

The combination Binary AND Natural Numeric is NOT possible.

So I guess I will turn the "Natural numeric sort order" checkbox into a dropdown Sort order: with 3 options:
- Binary
- Textual
- Natural

admin
Site Admin
Posts: 60526
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: How to get true ASCII sort order

Post by admin »

Carl, how do you get along with the new order?

Post Reply