update sort order