sort order fix