fix sortorder