I have an array that looks something like this:
array(
(int) 0 => array(
'SomeItem' => array(
'id' => '1',
'number' => '3',
'created' => '2012-07-20 23:34:00',
'modified' => '2012-07-20 23:34:00'
)
)
(int) 1 => array(
'SomeItem' => array(
'id' => '1',
'number' => '6',
'created' => '2012-07-20 23:34:00',
'modified' => '2012-07-20 23:34:00'
)
)
)
How would I sort it by “number” so I could put it in ascending order of number, while still maintaining the structure?
Thank you!
Using Closure:
Without