Dobrojelatel / vosao

Automatically exported from code.google.com/p/vosao
GNU Lesser General Public License v2.1
0 stars 0 forks source link

findPageChildren sorts on publishdate #550

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, and thank you for a great CMS!

I think this is a bug, I have a realle simple velocity code to generate
links to "subpages", and I assumed the order would be the same as the order in 
the "content"-hierarchy. 

Logically, since it IS possible to rearrange sub-pages, I would assume 
findPgeChildren would return them in this order.

I think I tracked it to line 207 of PageDaoImpl.java:
Collections.sort(result, PageHelper.PUBLISH_DATE);

Original issue reported on code.google.com by tho...@ruter7.com on 21 Jan 2012 at 10:56

GoogleCodeExporter commented 9 years ago
Use findPageChildrenOrdered

Original comment by kinyelo@gmail.com on 4 Feb 2012 at 7:34