created sortByTitle and sortByPriority buttons