Handling action sorting and displaying latest action.