I have this array. how can i sort it according to desc or asc with respect to id.
Array
(
[0] => Array
(
[data] => Array
(
[id] => 1
[title] => Ferrari
[price] => 15
[model] => 1997
[color] => Green
[speed] => 80
)
)
[1] => Array
(
[data] => Array
(
[id] => 3
[title] => Audi
[price] => 255
[model] => 55
[color] => Green
[speed] => 99
)
)
[2] => Array
(
[data] => Array
(
[id] => 4
[title] => BMW
[price] => 55
[model] => 444
[color] => Blue
[speed] => 123
)
)
)
Thanks.