Kategorienfilter verwendet nur festgelegte Sortierung der Kategorien.

git-svn-id: https://svn.libreccm.org/ccm/trunk@2503 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2014-01-31 16:22:19 +00:00
parent 7a7fccbcaa
commit f3a3acb1ca
1 changed files with 3 additions and 1 deletions

View File

@ -206,7 +206,8 @@ public class CategoryFilter {
filter.addAttribute("label", label);
final CategoryCollection categories = filterRootCat.getChildren();
categories.addOrder("name");
//categories.addOrder("name");
categories.sort(true);
Category category;
while (categories.next()) {
@ -255,6 +256,7 @@ public class CategoryFilter {
final Element elem = parent.newChildElement("categoryGroup");
elem.addAttribute("label", category.getName());
final CategoryCollection childs = category.getChildren();
childs.sort(true);
while(childs.next()) {
final Category child = childs.getCategory();