main sort of complete