sorting for active users
Merge pull request #1008 from dimagi/sort

sorting for active users