Simplify sorting