2016-04-23 8 views

Antwort

0

einfach das Array sortieren $scope.items wird dieses Problem lösen:

Eine Arbeits jsfiddle hier: https://jsfiddle.net/yufeng/5wz6nxun/

//Add the following code after the declaration of $scope.items 
//sort the items by 'pubdate' 
$scope.items.sort(function(a, b) { 
    return b.pubdate - a.pubdate; 
}); 
+0

Sie so viel Dank. –

Verwandte Themen