Implementing sort menu for list