Improve sorting of steps in GUI.