Added replayworker support for sort and sql2mongo generate queries for sort