Add command to sort user activities