按一个属性对对象数组进行排序
2022-08-30 05:48:17
如何按对象的一个字段(如 或 )对此对象数组进行排序?name
count
Array
(
[0] => stdClass Object
(
[ID] => 1
[name] => Mary Jane
[count] => 420
)
[1] => stdClass Object
(
[ID] => 2
[name] => Johnny
[count] => 234
)
[2] => stdClass Object
(
[ID] => 3
[name] => Kathy
[count] => 4354
)
....