Sort lists in the GUI.

Fixes #4