この配列を video 、次に Simple Page のようにタイプでソートするにはどうすればよいですか?
print_r($result);
出力:
Array
(
[link] => http://localhost/test/test
[type] => Video
[title] => Treasurer Robot
[date] => 1359397195
[node] => stdClass Object
(
[nid] => 9
[type] => video
[language] =>
[uid] => 1
[status] => 1
[created] => 1344351903
[changed] => 1359397195
[comment] => 0
[promote] => 1
)
)
Array
(
[link] => http://localhost/test/test
[type] => Simple Page
[title] => Treasurer Robot2
[date] => 1359397193
[node] => stdClass Object
(
[nid] => 11
[type] => Simple Page
[language] =>
[uid] => 1
[status] => 1
[created] => 1344351903
[changed] => 1359397195
[comment] => 0
[promote] => 1
)
)
Array
(
[link] => http://localhost/test/test
[type] => Video
[title] => Treasurer Robot3
[date] => 1359397195
[node] => stdClass Object
(
[nid] => 19
[type] => video
[language] =>
[uid] => 1
[status] => 1
[created] => 1344351903
[changed] => 1359397195
[comment] => 0
[promote] => 1
)
)