Added a sorting menu with various sorting functions.