Minimumsort + Cleanup