Sort multiple or multi-dimensional arrays - PHP Associative (string) keys will be maintained, but numeric keys will be re-indexed. ... Purpose: Sort a 2-dimensional array on some key(s) Advantage of function: