Adds 'order' filter to records API.