--
You received this message because you are subscribed to the Google Groups "Angular" group.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/angular?hl=en.
angular.Array.orderBy
Description
Orders array by the expression predicate.
Note: this function is used to augment the Array type in angular expressions. See angular.Array for more info.
Usage
|
1 |
angular.Array.orderBy(array, expression[, reverse]); |
Parameters
Returns
{Array} – Sorted copy of the source array.
You're right, I tried it elsewhere and it works consistently. I could not reproduce the problem I had outside of that given code. Just sent an e-mail.
--
Just wanted to say for the record that errors were by and far on me and that angularjs works as intended once the documentation is updated, i.e. Array.$orderBy takes function(*) with 1 argument which returns the value to be sorted, as opposed to a function(*, *) with 2 arguments for comparison/handling the sorting. Once that's understood there's nothing at all wrong with Array.$orderBy......but plenty wrong with me w/o enough sleep haha. Kudos to Misko for being patient w/ me =D
--
Can be? IMO it's a suicide.
/i