Method Array.dwim_sort_func()


Method dwim_sort_func

int(-1..1) dwim_sort_func(string a, string b)

Description

Sort strings containing numbers with respect to their values rather than according to their formatting (this most notably causes leading zeroes to be ignored/unnecessary).

Example

"foo7" will be sorted before "foo27", which will be before "foo100".