Closed daupawar closed 9 years ago
I want to fetch data from collection with sort var prod=Production.reactiveQuery({sort: {index : -1},productionId:$cookies.productionid}); sort is not working here
var prod=Production.reactiveQuery({}); var sorteddata=prod.result.sort(function(a, b){return a.index-b.index});
I want to fetch data from collection with sort var prod=Production.reactiveQuery({sort: {index : -1},productionId:$cookies.productionid}); sort is not working here