キー値で配列をソートすることに頭を悩ませています。この次の配列では、これをsite_categoryでソートする必要があり、次のような出力が必要です
例:
Shopping
Amazon
Social
Amoeblo
American express
配列値は
(
[0] => stdClass Object
(
[site_id] => 1
[site_name] => Amazon
[site_img] => http://localhost/faves/resource/img/sites/icon/amazon.png
[site_category] => Shopping
)
[1] => stdClass Object
(
[site_id] => 2
[site_name] => Ameblo
[site_img] => http://localhost/faves/resource/img/sites/icon/ameblow.png
[site_category] => Social
)
[2] => stdClass Object
(
[site_id] => 3
[site_name] => American Express
[site_img] => http://localhost/faves/resource/img/sites/icon/americanexpress.png
[site_category] => Social
)
)
これを解決するための提案はありますか?