Hexodus
3/30/2016 - 6:59 PM

This sorts a multidimensional associative array and keeps the values. Please note that uasort() and usort() are sorting an array and not ret

This sorts a multidimensional associative array and keeps the values. Please note that uasort() and usort() are sorting an array and not returning a new one.

	uasort($array_to_sort, function($a, $b) 
				{
				    return $a['order'] - $b['order'];
				});