Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 1a3c218

Browse files
committed
fix(orderBy): Mantain order in array of objects when predicate is not provided.
style(*): Fix nits. fix(*): solve function nit. Revert "fix(orderBy) and nit fixes" This reverts commit f01a643. fix(orderBy): Mantain order in array of objects when predicate is not provided
1 parent 53670d7 commit 1a3c218

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ng/filter/orderBy.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ function orderByFilter($parse){
131131
}
132132
if (predicate === '') {
133133
// Effectively no predicate was passed so we compare identity
134-
if (array.some(angular.isObject)) {
135-
return function () {
134+
if (array.some(isObject)) {
135+
return function() {
136136
return descending ? 1 : 0;
137137
};
138138
}

0 commit comments

Comments
 (0)