cruft removal and sort