Move sorting across groups into separate function
Add second sort mode

You can now sort inside groups and sort across groups. Sorting inside
groups leaves the import groups as they are and orders the imports
alphabetically.

Searching across groups takes all imports and puts them into 3 groups.