turn parameterize sorting