SC formatlist - items sorting differs from in pane

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Nolan
Posts: 66
Joined: 27 Nov 2013 05:23

SC formatlist - items sorting differs from in pane

Post by Nolan »

XY: v17.30.0109

3 items: abc (2).txt, abc (1).txt, abc.txt sorted by ascending name are arranged in this order in pane:
#1 abc.txt
#2 abc (1).txt
#3 abc (2).txt

However, this script:

Code: Select all

text formatlist("abc (2).txt|abc (1).txt|abc.txt", "s");
or:

Code: Select all

text formatlist("abc (2).txt|abc (1).txt|abc.txt", "n");
returns a list of another order:
abc (1).txt|abc (2).txt|abc.txt

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: SC formatlist - items sorting differs from in pane

Post by highend »

This is not a bug but you're using a modified sort order in that column...

Configuration | Sort and Rename | Sort | Sort filenames by base
Disable it and you get what formatlist() reports
One of my scripts helped you out? Please donate via Paypal

Post Reply