Sorting part of UI.