I am using Jackrabbit with JCR, how can I reorder the nodes?
There are several ways:
1) Create a parent node type with the "orderable" option.
[ns:NodeType] > ns:ParentType1 orderable .... ..
Now you can use the [orderBefore] [1] method to order nodes.
2) Use the SQL / XPATH query to order returned nodes. eg
//element( *, blabla:nodes) order by @blabla:title descending
[1]: http://www.day.com/maven/jsr170/javadocs/jcr-1.0/javax/jcr/Node.html#orderBefore(java.lang.String , java.lang.String)
Source: https://habr.com/ru/post/1727482/More articles:How to get gridview data source - c #Agnostic Connection handlers in .NET. - c #How to show adsense ads in wpf app - wpfUsing Undercover with ScalaTest and Maven - scalawrite custom anaylzer in pylucene / inheritance using jcc? - pythonАсинхронные подключаемые протоколы - c#Suppressing Cherrypy output while running unit tests using nose - pythonHow can I select MySQL full-text index entries for full-featured functions? - mysqlМожно использовать WCF + DTO + Automapper? - c#How should I handle the weight of duplicate records in the MyISAM search index? - mysqlAll Articles