Wired up autocomplete on sort directions and group-by select2.
Merge pull request #1399 from opf/fix/8238-select2-autocompletion

Wired up autocomplete on sort directions and group-by select2.