Added sort order to UI elements.