hi maneesh.
1st level nodes should be sorted, but if the
string is CAR, it should always be the first node. if it is HOUSE is should always be the last node.
e.g.
root
-CAR
-- child1
-- child2
-AIRCRAFT
-- child1
-- child2
-BUILDING
-- child1
-- child2
-HOUSE
-- child1
-- child2
aircraft and building are sorted. while car and house are not. car should always be the first and house should always be the last