removed a step from sort