I am having trouble with the proper syntax for creating a custom orderBy filter. I have no problems if require one parameter ( the item being iterator over in ng-repeat ). How do you pass a second parameter. I have tried:
<div ng-repeat="item in items | orderBy:myCustomSort:mySecondParameter"></div>
However if I put a break in the myCustomSort function, mySecondParameter is undefined. Additionally can you have orderBy reverse the order as well and if so where do you stick the "reverse" parameter.
Thanks.