One problem with non alphabetical sort is what do you do when a new page is added. If you put it at the bottom it may look weird.
If you need a static tree list, then you can use the tree macro and create your own panel and use that panel instead of the Navigation one. It’s very easy to do.
Nota Bene : for people using XWIKI in another language that English : I realized that it is the alphabetical order of the English name of the page when exist that count. I though “Accueil” will nearly always be first but as it is “Home” that count, it is not the case !
No. The sort is done taking into account the title of the translation page (e.g. “Accueil”), i.e. the sort depends on the current UI language. The problem is different: some pages are using Velocity code in their titles and this code is not evaluated when the sort is done. In other words, the sort is done on the raw page title (without executing the Velocity code). If the Velocity code from the page title starts with a symbol, like:
$services.localization.render('help.title')
then it will end up before “Accueil”.
The problem boils down to the fact that you can translate the page title in two ways:
by creating a page translation and modifying its title
by using translation keys in the page title, but this means using Velocity code
When you mix these two you don’t get nice sort results.