michaelbromley / angularUtils

A place where I will collect useful re-usable Angular components that I make
MIT License
2k stars 858 forks source link

Sorting issue with reverse #454

Open salmanlone opened 7 years ago

salmanlone commented 7 years ago

I am having an issue with sorting the grid. The sorting is working for once only and not for the reverse case.

<tr dir-paginate="Emp in activeEmployees | filter:nameSearch | orderBy: propertyName:reverse | itemsPerPage: pageSize" current-page="currentPage">

the above code sort the grid for once only. Kindly help me in resolve the sorting issue.