Fix orderby lost in merge

Initially added in #98, but accidentally removed by#92