Skip to content

Commit 7e5248a

Browse files
dwandertonNarretz
authored andcommitted
docs(orderBy): correctly is not the right word
The use of correctly implies that Angular is doing something incorrect, however it is that we expect a number passed as a string to be sorted as a number. Angular does not do what we are expecting, although it responds correctly to what we have actually asked - sorting based on the string representation of a number. Closes angular#12046
1 parent c210ff5 commit 7e5248a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/filter/orderBy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @description
99
* Orders a specified `array` by the `expression` predicate. It is ordered alphabetically
1010
* for strings and numerically for numbers. Note: if you notice numbers are not being sorted
11-
* correctly, make sure they are actually being saved as numbers and not strings.
11+
* as expected, make sure they are actually being saved as numbers and not strings.
1212
*
1313
* @param {Array} array The array to sort.
1414
* @param {function(*)|string|Array.<(function(*)|string)>=} expression A predicate to be

0 commit comments

Comments
 (0)