我有一个名为 $result 的数组,其内容如下:
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_started_date对其进行排序。我尝试使用 ksort、asort 等,但没有运气,也许我没有正确使用它。任何帮助将不胜感激。
谢谢!