Better sorting the children of project node
LGTM overall. One small thing: can we adjust the order of source sets? Showing main/test source sets before the generated source sets would be better.
after:

before:

Originally posted by @CsCherrYY in https://github.com/microsoft/vscode-java-dependency/pull/730#pullrequestreview-1377119435
One solution is sort at server side, which has the following order:
source[non-test] > source[test] > source[optional] > containers[JDK] > other containers
Is it possible to sort at client side, which would provide more flexibility? And the server side only provides type&context of the nodes.
Is it possible to sort at client side, which would provide more flexibility? And the server side only provides type&context of the nodes.
Yes, as long as the required information of the package roots can be passed to the client, then we can do it at the client side.