custom field sort order fix