optional
The properties by which to order the nodes.
Example: mgnl:lastModified desc,title asc
Note that special characters such as a space (
) must be encoded when sent in an HTTP request. When using tools to generate a REST request, this may happen automatically. With simple cURL you must encode it manually or with an additional tool.
Example: orderBy=title%20asc
Please note that until Magnolia 5.6.5 the results provided by the endpoint were sorted alphabetically on node names (same as with the ORDER BY LOWER(NAME(t))
statement in the JCR-SQL2 query) even though no orderBy
parameter was set in the request URL.
Since Magnolia 5.6.5 the results are returned unsorted if no orderBy
parameter is set. This however does not mean "in natural order" since many other aspects may be involved, such as the setting of the respectDocumentOrder
property or index consistency. For more information, see Apache Jackrabbit Search and Rebuilding the Index.