sorting revamp