I have an array that looks like this: $init[$a] = array("crank" => $cnt, "title" => $rsl["title"], "desc" => $rsl["metad"], "date" => $rsl["date"], "url" => $rsl["url"]); Code (markup): I want to sort the array $init on the value of "crank". What's the best way to approach that? I've looked at some of the stuff on php.net but I'm not sure I'm getting what they're trying to tell me.
There is an asort function in PHP. asort($arrayVariable); I think it sorts according to the key (the text before the =>) JRM