I am looking for a reliable standard method to sort an array, returning the sorted ( associative ) array, as return value.
All the
Here's a one-liner:
call_user_func(function(array $a){asort($a);return $a;}, $some_mixed_array);