Sorted the selection columns.