Closed WJTrevino closed 1 year ago
Can the option to sort with "natural" ordering be added so titles like 2.10 can be sorted below 2.2? This could be minimally invasive by adding an nsort option which would use strnatcmp instead of strcmp.
nsort
strnatcmp
strcmp
$fnc = create_function('$a, $b', 'return strnatcmp(noNS($a["id"]), noNS($b["id"])); ');
Fixed by #153
sortby=title will sort by title which uses natural sorting with collator(=with support of sorting in the language of your wiki).
sortby=title
Can the option to sort with "natural" ordering be added so titles like 2.10 can be sorted below 2.2? This could be minimally invasive by adding an
nsort
option which would usestrnatcmp
instead ofstrcmp
.