Kategorienfilter verwendet nur festgelegte Sortierung der Kategorien.
git-svn-id: https://svn.libreccm.org/ccm/trunk@2503 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
7a7fccbcaa
commit
f3a3acb1ca
|
|
@ -206,7 +206,8 @@ public class CategoryFilter {
|
||||||
filter.addAttribute("label", label);
|
filter.addAttribute("label", label);
|
||||||
|
|
||||||
final CategoryCollection categories = filterRootCat.getChildren();
|
final CategoryCollection categories = filterRootCat.getChildren();
|
||||||
categories.addOrder("name");
|
//categories.addOrder("name");
|
||||||
|
categories.sort(true);
|
||||||
|
|
||||||
Category category;
|
Category category;
|
||||||
while (categories.next()) {
|
while (categories.next()) {
|
||||||
|
|
@ -255,6 +256,7 @@ public class CategoryFilter {
|
||||||
final Element elem = parent.newChildElement("categoryGroup");
|
final Element elem = parent.newChildElement("categoryGroup");
|
||||||
elem.addAttribute("label", category.getName());
|
elem.addAttribute("label", category.getName());
|
||||||
final CategoryCollection childs = category.getChildren();
|
final CategoryCollection childs = category.getChildren();
|
||||||
|
childs.sort(true);
|
||||||
|
|
||||||
while(childs.next()) {
|
while(childs.next()) {
|
||||||
final Category child = childs.getCategory();
|
final Category child = childs.getCategory();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue