Hi all, i have a problem extracting nodes in the right order with a JCR Query. This is my JCR Structure:
[img]http://i45.tinypic.com/35bs7s9.png[/img] I tried to get the nodes ordered by [b]sortOrder [/b] field but the statement seems to be ignored. This is my JCR Query: [code]/jcr:root/iphone/untitled/p-main/verticalLayout/_x0030_/scheduledBox/*[( (@jcr:primaryType='mgnl:contentNode') )] order by @sortOrder ascending[/code] and this is the result: [img]http://i50.tinypic.com/tao6q1.png[/img] Obviously, the correct order should be: 01, 0, 00. Does anybody know what I'm doing wrong? I tried to change field name, remove the '@', change ascending to descending with no result :( Thanks in advance! Daniele -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=bde8b078-2d57-4640-8c43-01671fa5a27f ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
