Fix inverted sort arrows in the GUI.