The link to the problem is given below : CodeAgon Dependency Hell
I was trying to compare the values in "qu" with multiple criteria :
If the component number for two elements in qu is not the same then it compares them with the their normal values only and does not care about the component number, however if it is same it sorts the members of the same component depending on the level of the node in the graph .
The output i wanted : 8 2 5 6 7 3 4 8 1
The output i actually get : 8 2 5 7 3 4 8 1 6
can i make such comparators ?