I am new to angular Filters.
If i want to sort the email Id's which is in ng-repeat by applying a filter. How to do this?
For example :
[email protected], [email protected] , [email protected] and [email protected] are my emails.
I want to get the output as
[email protected] , [email protected], [email protected] , [email protected]
Its like sorting alphabetically and also in ascending order Both in a filter.
I would really appreciate if working code is provided for this.
Thanks in advance. What I should write in OrderBy: "???????"
Code:
<div class="col-md-12 " ng-repeat="e in allEmails | orderBy:'??????'">
//Display the emails here in sorted alphabetically ascending order.
</div>