Possible Duplicate:
Sort multidimensional Array by Value (2)
How can i sort array by specific key inside it:
array(
array(5, 2),
array(5, 3),
array(3, 1),
array(5, 4)
);
It's an array that has several arrays with 2 values, how do i sort by the second value of each array, so result would be :
array(
array(5, 1),
array(5, 2),
array(3, 3),
array(5, 4)
);