added 2nd tier sort