How to manage sorting of children page

When creating pages with for example numerical names ( 1, 2, 3, 4, 5),

the challenge arises when they are sorted from low to high. How can one manage the ordering of the pages?

Hi, it’s not clear if you’re asking the question from the point of view of a developer that writes its own database query to retrieve the pages or from the point of view of an user that uses some standard XWiki UI element such as the Navigation Panel, breadcrumb tree, page index, etc.

In general, wiki pages are sorted by their raw title alphabetically. This can be changed if you control the query that retrieves the wiki pages or if the UI element that displays them exposes some configuration for this.

Hope this helps,
Marius

1 Like

Hi,how can one make this happen?Can you be more specific?

1 Like

If you control the query then you also control the sort:

2 Likes