sort assignments by name