View Full Version : Add node at a sorted TreeStore

2 Dec 2014, 5:13 AM
Just a brief view of the scenario here...I have a TreeStore with x elements and it is sorted by creating a new comparator and passing it as a parameter to addInfoStore(comparator) method.

The TreeStore is sorted beautifully. However, once it is already sorted and I add new elements to it, they are always placed at the end of the list.

Is there any way to add these new items to this sorted TreeStore where it can keep the alphabetical order?