Trying to sort treemap in a way that the name A goes to the first position from top to bottom. Sort function of hierarchyConfig does not work as it should work.
You can use some features of TreeMap in Java with TypeScript. In order to sort keys, you need to define a comparison function, and TreeMap has an internal comparison function that automatically sorts ...