Implement cleaner sort