Retry sort