How to sort the actions view