| ... | ... | @@ -217,7 +217,8 @@ 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 ? */|
|
|
|
|
|[ <br>{ "-asc" => "colA" },<br>{ "-desc" => ["colB"] },<br>{ "-asc" => ["colC","colD"] },<br>[ "FUNC(colF, ?)", "bla" ],<br>] | ORDER BY, colA ASC,<br>colB DESC,<br>colC ASC, colD ASC,<br>FUNC(colF, ?) /* with "bla bound to ? */ |
|
|
|
|
|[ <br>{ "-asc" => "colA" },<br>{ "-desc" => ["colB"] },<br>{ "-asc" => ["colC","colD"] },<br>[ "FUNC(colF, ?)", "bla" ],<br>] |
|
|
|
|
ORDER BY, colA ASC,<br>colB DESC,<br>colC ASC, colD ASC,<br>FUNC(colF, ?) /* with "bla bound to ? */ |
|
|
|
|
|
|
|
|
|
|
|
|
The API also supports [similarity](/API/Queries/Query-Search-Options#similarity) for sorting.
|
| ... | ... | |