aboutsummaryrefslogtreecommitdiffstats
path: root/src/apis.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/apis.js')
-rw-r--r--src/apis.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/apis.js b/src/apis.js
index 9fc45619..1ca33208 100644
--- a/src/apis.js
+++ b/src/apis.js
@@ -541,12 +541,13 @@ var angularArray = {
* {@link angular.Array} for more info.
*
* @param {Array} array The array to sort.
- * @param {function(*, *)|string|Array.<(function(*, *)|string)>} expression A predicate to be
+ * @param {function(*)|string|Array.<(function(*)|string)>} expression A predicate to be
* used by the comparator to determine the order of elements.
*
* Can be one of:
*
- * - `function`: JavaScript's Array#sort comparator function
+ * - `function`: getter function. The result of this function will be sorted using the
+ * `<`, `=`, `>` operator
* - `string`: angular expression which evaluates to an object to order by, such as 'name' to
* sort by a property called 'name'. Optionally prefixed with `+` or `-` to control ascending
* or descending sort order (e.g. +name or -name).