I'm trying to sort this multidimensional array. I don't want to sort the first dimension of the array by the names that are contained in the second array.
How would I sort this alphabetically by "name":
Array
(
[0] => Array
(
["name"] => "Delta"
["other1"] => "other data..."
["other2"] => "other data..."
)
[1] => Array
(
["name"] => "Beta"
["other1"] => "other data..."
["other2"] => "other data..."
)
[2] => Array
(
["name"] => "Alpha"
["other1"] => "other data..."
["other2"] => "other data..."
)
)
So that it winds up like this:
Array
(
[0] => Array
(
["name"] => "Alpha"
["other1"] => "other data..."
["other2"] => "other data..."
)
[1] => Array
(
["name"] => "Beta"
["other1"] => "other data..."
["other2"] => "other data..."
)
[2] => Array
(
["name"] => "Delta"
["other1"] => "other data..."
["other2"] => "other data..."
)
)
Would much appreciate some help!