adding a simple sorter to keep completions of length 1 as first completions