Help sorting a multidimensional array

Can someone help me sort this array ascending by the ‘formattedDate’ field?


$data = array(
    			array(formattedDate => 22, open => 1, sent => 2),
    			array(formattedDate => 3, open => 2, sent => 2),
    			array(formattedDate => 16, open => 5, sent => 2),
    			array(formattedDate => 17, open => 1, sent => 2)
			);

Thanks

Easiest way is to just use array_multisort()

http://php.net/manual/en/function.array-multisort.php