Permalink
Browse files
refactor(orderBy): remove unneeded function wrapping
- Loading branch information
Showing
with
1 addition
and
3 deletions.
-
+1
−3
src/ng/filter/orderBy.js
|
|
@@ -130,9 +130,7 @@ function orderByFilter($parse) { |
|
|
} |
|
|
if (predicate === '') { |
|
|
// Effectively no predicate was passed so we compare identity |
|
|
return reverseComparator(function(a, b) { |
|
|
return compare(a, b); |
|
|
}, descending); |
|
|
return reverseComparator(compare, descending); |
|
|
} |
|
|
get = $parse(predicate); |
|
|
if (get.constant) { |
|
|
|