std.tbl.alphanumsort

std.tbl

alphanumsort(o) -> sorted

Sort an array using natural alphanumeric ordering

Sorts t in place so that embedded numbers compare by value rather than lexicographically (e.g., "file10" sorts after "file9"). Returns the same array (modified in place).

Authored by Paul Kulchenko, creator of ZeroBrane Studio.