adjust the sort order