sort the panel