Closed PaulGrimshaw closed 6 years ago
Could i add a pull request allowing more advanced order by syntax? This would be a none breaking change, but allow a more mongo like order by syntax:
order: { "col1": 1 //ascending "col2": -1 //descending }
as well as the existing:
order: [ "col1", "col2 desc" ]
Ah, realised you can do this:
order: { col1: "asc", col2: "desc" }
Have built some tests for it, will submit pull request
Could i add a pull request allowing more advanced order by syntax? This would be a none breaking change, but allow a more mongo like order by syntax:
as well as the existing: