var data = { a: [ { count: 0, str: 'this is a' } ], b: [ { count: 1, str: 'this is b' } ] }
排序后的结果为:
var data = { b: [ { count: 1, str: 'this is b' } ], a: [ { count: 0, str: 'this is a' } ] }
有谁有较简单的方法吗
ITMISS
相关分类