util/alphanumeric-sort

Utility function for sorting arrays of numbers or strings.

Source:
Parameters:
Name Type Description
a String | Number

The first comparator operand

a String | Number

The second comparator operand

Returns:

-1 if the values are backwards, 1 if they're ordered, and 0 if they're the same