planetarydev/json-sql-builder2

Can not order by DESC??

zzhgithub opened this issue · 1 comments

when i use to select with “$orderBy”:"id desc"
it become to id desc!!!

Please browse the docs in den /sql directory. Everything is well documented with test, examples for wach case.

Try $orderBy: { columname: false | true | 1 | -1 }

In the docs you will find additional Syntax for the use of NULLS FIRST option etc.