I'm looking for a way to sort an array that looks like this:
$array = array(
[0] => array('a', '1', '2', '3', '4,' test'),
[1] => array('c', '1', '2', '3', '5', 'test'),
[2] => array('b', '1', '3', '4,' 5,', 'test),
);
so that it sorts the sub-array's according to the sub-array's first element, such that it returns:
$array = array(
[0] => array('a', '1', '2', '3', '4,' test'),
[1] => array('b', '1', '3', '4,' 5,', 'test),
[2] => array('c', '1', '2', '3', '5', 'test'),
);
Does anyone have a good way about doing this?
Thank you!