i think i got sort order working finally