sort order patch