テンプレートに次の div があります。
<div ng-repeat="item in billing_history | orderBy:'-timestamp'">{{ item.date }}</div>
console.log(JSON.stringify($scope.billing_history))
私に次を与えます:
{
"May, 2015":{
"date":"May, 2015",
"timestamp":1432921230
},
"March, 2015":{
"date":"March, 2015",
"timestamp":1427846400
},
"February, 2015":{
"date":"February, 2015",
"timestamp":1425168000
}
}
何はともあれ、以下のように表示されます。
February, 2015
March, 2015
May, 2015
私は試してみましorderBy:'-timestamp'
たorderBy:'+timestamp'
なぜこれが機能しないのか、私には本当にわかりません。誰かが間違っている可能性があることを見ていますか?