angularjs - How to sort an angularFireCollection? -


i'm having trouble sorting larger arrays angularfirecollection binding:

$scope.offers = angularfirecollection(new firebase(url)); 

while having in template code:

<tr ng-repeat="offer in offers | limitto:100 | orderby:'createdtimestamp':true"> 

while offers.length < 100, new items correctly displayed on top. after 100 items, sorting stops working @ all.

the issue expression order. "offer in offers | limitto:100 | orderby:'createdtimestamp':true" first gets first 100 elements of offers, orders. want order, limit, want use string "offer in offers | orderby:'createdtimestamp':true | limitto:100". can see mean in following jsfiddle, first list limits array , tries ordering while second orders, limits: http://jsfiddle.net/qe5p9/1/.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -