how to apply sorting for tree of tree root nodes in vaadin

give the code to implement with exampel