Possible Duplicate:
How to sort a multidimensional array by a certain key?
I would like to sort an array, which looks like below, by the key value:
$arr = ([0]=>Int(5)
[1]=> Array ( [0]=>Int(4) , [1]=>String(10) , [2]=>String(22) , ['prop']=>Int(2))
[2]=> Array ( [0]=>Int(4) , [1]=>String(10) , [2]=>String(22) , ['prop']=>Int(2))
[3]=> Array ( [0]=>Int(4) , [1]=>String(10) , [2]=>String(22) , ['prop']=>Int(2))
)
So, as a result i would like to have the $arr sorted by the ['prop']'s value.
I've tried bubble sort but without any result.