-
Task
-
Resolution: Done
-
Neutral
-
None
-
None
-
None
-
None
-
-
Empty show more show less
-
Empty show more show less
-
Yes
-
Docu Sprint 48, Docu Sprint 49, Docu Sprint 50
-
0.5
The only way to definitely get items in natural order is to use a "readNode" to get a parent item and all the children will be listed in natural order. This should be clearly documented.
It should also be documented that if you supply no parameters or path - then the QUERY is used, not the READNODE.
It should be documented that when the QUERY is used with no ordering paramaters - than the "nagtural" repositories order will be used. But that this unfortunately often does not reflect the order in the app. There should be some information about JCR indexing etc. See forum posts linked here: https://jira.magnolia-cms.com/browse/MGNLREST-169?focusedCommentId=156550&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-156550
It might be possible to do this on items in the root by requesting the root node - but im not sure.
After a ticket is fixed it may be possible to get items from the "query" but it depends on a bug being fixed and on strange JCR behaviour as mentioned in linked ticket.
See comments on: https://jira.magnolia-cms.com/browse/MGNLREST-169
- is related to
-
MGNLREST-169 By default, items should have order that they have in Magnolia
- Closed
-
MGNLREST-173 Get ordered tree of content from configured root of endpoint
- Closed