I have an array named as $result which have contents something like this:
Array (
[1114_435] => stdClass Object
(
[uid] => 435
[v_first_name] => fHerter
[v_last_name] => Herter
[id] => 1114
[v_title] => Morning Stretch
[fk_resident_id] => 435
[v_location] => Front Lawn
[i_started_date] => 1357054200
)
[1114_444] => stdClass Object
(
[uid] => 444
[v_first_name] => fXYZ
[v_last_name] => XYZ
[id] => 1114
[v_title] => Morning Stretch
[fk_resident_id] => 444
[v_location] => Front Lawn
[i_started_date] => 1357054200
)
[1114_448] => stdClass Object
(
[uid] => 448
[v_first_name] => fDavidson
[v_last_name] => Davidson
[id] => 1114
[v_title] => Dinner
[fk_resident_id] => 448
[v_location] => Front Lawn
[i_started_date] => 1357051000
)
)
I want to sort it on the basis of i_started_date. I tried using ksort, asort etc but no luck, maybe i wasn`t using it properly. Any help would be highly appreciated.
Thanks!