[STORM-808] Fix resource response sorting using ?sort query param.