Changes for page Rangee Index

Last modified by Tobias Wintrich on 2025/06/04 09:20

From version 12.57
edited by Tobias Wintrich
on 2021/09/28 13:10
Change comment: There is no comment for this version
To version 12.58
edited by Tobias Wintrich
on 2021/09/28 13:11
Change comment: There is no comment for this version

Summary

Details

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -13,7 +13,11 @@
13 13   #set($results = $query.bindValue('doc', $doc.fullName).addFilter('currentlanguage').execute())
14 14   $results
15 15   #set($children =$doc.getChildren())
16 - $sorter.sort($children, ["name:asc", "ordinal:desc"]))
16 + Single Property Sort
17 + #foreach($obj in $sorter.sort($children, "name"))
18 + $obj.name
19 + #end
20 + End
17 17   #foreach($docname in $results)
18 18   #set($rdoc = $xwiki.getDocument($docname).getTranslatedDocument())
19 19   #if ($locale == $rdoc.getLanguage())