| ... | ... | @@ -217,15 +217,10 @@ Ordering can be defined by the "order_by" attribute. |
|
|
|
|["colA", {-asc => "colB"}] | ORDER BY colA, colB ASC|
|
|
|
|
|{ "-asc" => ["colA","colB"] } | ORDER BY colA ASC, colB ASC|
|
|
|
|
|[ "FUNC(colA,?)", "bla" ] | ORDER BY FUNC(colA, ?) /* with "bla bound to ? */|
|
|
|
|
|[ | ORDER BY
|
|
|
|
{ "-asc" => "colA" },
|
|
|
|
{ "-desc" => ["colB"] },
|
|
|
|
{ "-asc" => ["colC","colD"] },
|
|
|
|
[ "FUNC(colF, ?)", "bla" ],
|
|
|
|
] |
|
|
|
|
|<code>[ <br>{ "-asc" => "colA" },<br>{ "-desc" => ["colB"] },<br>{ "-asc" => ["colC","colD"] },<br>[ "FUNC(colF, ?)", "bla" ],<br>] </code> |
|
|
|
|
|
|
|
|
|
|
|
|
```colA ASC,
|
|
|
|
```ORDER BY, colA ASC,
|
|
|
|
colB DESC,
|
|
|
|
colC ASC, colD ASC,
|
|
|
|
FUNC(colF, ?) /* with "bla bound to ? */```
|
| ... | ... | |