sort completions