sort sweep works