Skip to content

Commit

Permalink
remove reference for sorting an array since it's not supported in core
Browse files Browse the repository at this point in the history
mentioning this in the docs led to confusion for a user, see http://stackoverflow.com/questions/9041505/sort-array-of-emberjs-objects-by-property
  • Loading branch information
pangratz committed Jan 28, 2012
1 parent e1f816b commit 995f1d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/docs/enumerables.md
Expand Up @@ -122,7 +122,7 @@ arr.getEach('name') // ['unknown', 'unknown']

#### Filtering

Another common task to perform on an Enumerable is to take the Enumerable as input, and return an Array after sorting or filtering it based on some criteria.
Another common task to perform on an Enumerable is to take the Enumerable as input, and return an Array after filtering it based on some criteria.

For arbitrary filtering, use the (you guessed it) `filter` method. The filter method expects the callback to return `true` if Ember should include it in the final Array, and `false` or `undefined` if Ember should not.

Expand Down

0 comments on commit 995f1d2

Please sign in to comment.