Here is my version of sorting multidimensional arrays with any key in it even if u want it alphapatically sorted by any key.
u can remove the strtolower part if you want to keep it case sensitive
function cmp($a, $b){
return strcmp(strtolower($a["name"]), strtolower($b["name"]));
}