Is there a simple way of sorting multi-dimentional arrays, such as one like this:
$data = array(
0 => array("aa", "bb"),
1 => array("cc", "dd")
);
by a certain value? I need to sort by one of the column values, such as the second value in the array (ie $data[0][0...etc.]).
I know I could just rearange the array so the value is the key then sort by the key, but there has got to be a better way! I know that there has to be a simple solution to this problem and I am just looking over the obvious. Any help would be appreciated. Thank you!!
nbagley