Allow sort to be passed in to payload

Minor cleanup

Tabs