fix the initial sort order