Ich habe ein mehrdimensionales Array, das ich zu JSON analysiere und ich möchte in AngularJS "bestellen". und ich bin immer diese Fehlermeldung: Fehler: [orderBy: notarray] Erwartete Array aber erhalten: 13AngularJS Mehrdimensionales Array Ordnen nach
<div ng-repeat="x in thread track by x.Id | orderBy: x.Id">
Hier meine JSON ist:
{
"13": {
"Id": 16,
"LINK_Id": 16,
"Attachments": [
{
"AttachmentName": "Attachment.jpeg",
"AttachmentLinkId": 6,
"LinkType": "Thread",
"ThreadId": 20
},
{
"AttachmentName": "Attachment.txt",
"AttachmentLinkId": 7,
"LinkType": "Thread",
"ThreadId": 20
}
]
},
"16": {
"Id": 16,
"LINK_Id": 169
},
"19": {
"Id": 19,
"LINK_Id": 112
} }
Wenn jemand helfen könnte es wäre sehr geschätzt.
Vielen Dank,