Since it looks like you're the first person to use sort, I modified it to use sort() instead of natsort(), and I also modified it to read all remaining arguments as an array if the first argument is not an array. I also added the following functions:
asort
Sorts an associative array, preserving the keys. Takes only one argument, which should be an array.
natsort
Sorts an associative array in a natural order, preserving the keys. Same as sort used to be. Takes only one argument, which should be an array.
isort
Sorts an array in a natural, case-insensitive manner. Will sort remaining arguments if first one is not an array.
values
Returns the values of an array. Mainly useful for placing the values of an associative array into a numeric array.
Since it looks like you're the first person to use sort, I modified it to use sort() instead of natsort(), and I also modified it to read all remaining arguments as an array if the first argument is not an array. I also added the following functions: