I have a three-dimensional array of tuples:
var CountList = new List<Tuple<int, int, int>>();
The required sort numerically increases on the first int, and then numerically decreases on the second int, therefore
5, 4, 7
4, 5, 6
5, 2, 3
3, 5, 2
2, 4, 1
2, 6, 4
becomes
2, 6 ,4
2, 4, 1
3, 5, 2
4, 5, 6
5, 4, 7
5, 2, 3
Is there a way to specify additional search functions for List.Sort (), or do I need to divide the information into separate lists, sort in descending order in each group, and then add individual list items to the "master" list "in the desired ascending order?