我想按来自firebase的日期排序/排序。它的工作方式不同于传统的angular排序方式处理ng-repeat ... | orderBy:'<value>',因为firebase会返回一个对象,并且angular只能对数组进行排序。return contestants; // <= this one i want to sort bis the 'sco
数据是显示出来的,但它们既不能排序也不能过滤。过滤总是返回空列表。scope.dataInstances.length, // length of data // use build-in angular$filter('orderBy')(filteredData, params.orderBy()) :