refactor sort
refactor sort