-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 hi,
i don't think the jcr api allows that. nodes are ordered manually in the order you want them. (maybe you can sort them while adding, if you always need them sorted? resp. insert a new node at the correct position. that would put the hard work to the write operation and you could just getNodes() and have them in the right order) otherwise you could use a search - not sure what the performance impact is. getting all nodes and sorting in-memory would probably be worse than the search, if the search is not implemented in a stupid way. cheers,david Am 13.05.2011 14:39, schrieb decebal: > hi, > > It's possible to get child nodes sorted by jcr:name for a certain node? > I know about node.getNodes() but I want to implement a pagination with > results sorted by jcr:name. > > Thanks, Decebal > > -- > View this message in context: > http://jackrabbit.510166.n4.nabble.com/get-child-nodes-sorted-by-jcr-name-tp3520099p3520099.html > Sent from the Jackrabbit - Users mailing list archive at Nabble.com. - -- Liip AG // Agile Web Development // T +41 26 422 25 11 CH-1700 Fribourg // PGP 0xA581808B // www.liip.ch -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk3PzjEACgkQqBnXnqWBgIu7vQCeK7KxozJ//8ehrelZP01X3Xlp blYAoKA4l0LwZ5Zpe/eV2qs5Jo4kQoWY =XS8Q -----END PGP SIGNATURE-----
