Quantcast
Channel: AutoHotkey Community
Viewing all articles
Browse latest Browse all 579

Ask for Help (v1) • Re: How to sort the list properly?

$
0
0
try:

CODE:

List :="Class 2. Book 1|Class 1. Book 13|Class 1. Book 2|Class 1. Book 5|Class 1. Book 6|Class 2. Book 12|Class 1. Book 14|Class 1. Book 1|Class 2. Book 2|Class 1. Book 10"

Sort, List, D| F logical_cmp
List := StrReplace(List, "|", "`n")
msgbox % List

logical_cmp(a,b, o) {
return dllcall("Shlwapi.dll\StrCmpLogicalW", "wstr", a, "wstr", b, "int")
}

Note: V2 will do this natively (using the CLogical option).

Statistics: Posted by flyingDman — Today, 11:45



Viewing all articles
Browse latest Browse all 579

Trending Articles