AngularJS comes with several handy filters that you can use out of the box. These filters can be combined to create more complex filtered results.
It's important to say that the order of the filters are relevant:
1) ng-repeat="actor in avengers.cast | orderBy:'character' | limitTo:5 | filter:searchText"
Here we are searching only in the 5 that we limit to.
2) ng-repeat="actor in avengers.cast | filter:searchText | orderBy:'character' | limitTo:5"
Here we search first in all the records then we order and filter them.
Am I correct?