for all sort menu items, implemented the new sortProcedure() method,
eliminating redundant code