这是我的对象数组:
Array (
[0] => stdClass Object ( [id] => 64 [name] => January [alias] => January [description] => 01)
[0] => stdClass Object ( [id] => 64 [名称] => 一月 [别名] => 一月 [描述] => 01)
[1] => stdClass Object ([id] => 65 [名称] => 二月 [别名] => 二月 [描述] => 02 )
...
我怎么能从当月排序,然后自然的方式,所以今天它会是:10 月,11 月,12 月,1 月 ..
所以对于这个例子,它将是:
Array (
[0] => stdClass Object ( [id] => 73 [name] => October [alias] => october [description] => 10)
[0] => stdClass Object ( [id] => 64 [名称] => 一月 [别名] => 一月 [描述] => 01)
[1] => stdClass Object ( [id] => 74 [名称] => 十一月 [别名] => 十一月 [描述] => 11 ) ...
我不知道该怎么做。