I have a list called clusters and in that list there is another list called tags which has a sequenceno.
How do I sort clusters by using the max of seuqenceno from tags of each cluster using lambda expression in one line.
Something like
clusters.Sort((a,b) => a.tags......
A not very efficient solution (computes O(N log N) maximums, but runs in-place):
A somewhat better solution (only computes O(N) maximums, but does not work in-place):
It will be difficult to do this sort efficiently in-place without either: