Allow sort to be passed in to payload