diff options
| author | Igor Minar | 2010-12-06 20:32:37 -0800 |
|---|---|---|
| committer | Igor Minar | 2010-12-06 20:32:37 -0800 |
| commit | f60b6b09380f218a86fc1ffd07485bc282a930e5 (patch) | |
| tree | 082c810c938b6d5c3db63d4cef56702d9b2df6ac /src/apis.js | |
| parent | eea7113abe93b0c615899c03281896e638c4666c (diff) | |
| download | angular.js-f60b6b09380f218a86fc1ffd07485bc282a930e5.tar.bz2 | |
fix the angular.Array.orderBy example + add docs
Diffstat (limited to 'src/apis.js')
| -rw-r--r-- | src/apis.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/apis.js b/src/apis.js index d6e906ab..d63e8bea 100644 --- a/src/apis.js +++ b/src/apis.js @@ -533,7 +533,7 @@ var angularArray = { * - `Array`: array of function or string predicates, such that a first predicate in the array * is used for sorting, but when the items are equivalent next predicate is used. * - * @param {boolean=} descend TODO + * @param {boolean=} reverse Reverse the order the array. * @returns {Array} Sorted copy of the source array. * * @example @@ -554,7 +554,7 @@ var angularArray = { <th><a href="" ng:click="predicate = 'age'">Age</a> (<a href ng:click="predicate = '-age'">^</a>)</th> <tr> - <tr ng:repeat="friend in friends.$orderBy(predicate, true)"> + <tr ng:repeat="friend in friends.$orderBy(predicate)"> <td>{{friend.name}}</td> <td>{{friend.phone}}</td> <td>{{friend.age}}</td> |
