improve SortPanel class