Sort assignments