small refactorings in sort
test1 project