Simplify sorting assignments.