Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 1 week ago
Hierarchical container sorting
I had a problem sorting a tree, by using HierarchicalContainer.sort.
the code of this method is
@Override
protected void doSort() {
super.doSort();
Collections.sort(roots, getItemSorter());
for (LinkedList<Object> childList : children.values()) {
Collections.sort(childList, getItemSorter());
}
}
I do not understand the call to super (so the IndexedContaioner implementation), as it will sort all items, whether or not they do have a 'brother' relation ship.
looks to me more like a bug, as it is completly useless, but I may have miss something.
Thanks
Last updated on
You cannot reply to this thread.