I would like to adjust my angular text search so that it isn't word-order sensitive.
I have to search a big json object but
basically if there {"name":"John Doe"} in the file, I want the searchText 'Doe John' to return positive.
Any suggestions? Thanks
<input type="text" ng-model="searchText">
<ul>
<li ng-repeat="item in items | filter:searchText">
{{ item }}
</li>
</ul>
EDIT:
i got it working thanks! http://jsfiddle.net/Lp02huqm/
orderBy? docs.angularjs.org/api/ng/filter/orderBy