Fixed sort
-it now sorts in ascending and descending and alternates between the two