I have a list<> of int arrays created like this
List<uint[]> onMinterm = new List<uint[]>();
and it has got 1000 members. Every list members has 3 unsigned integers, I add my arrays just like that
uint[] sayi= new uint[3];
sayi[0] = 34432; sayi[1] = 63533; sayi[2] = 12;
onMinterm.Add(sayi);
I want to sort my 1000 list (onMinterm) according to each 3rd member (sayi[2]). List will be sorted in decending order. Sample member should be at the end as its 3rd value is very small like 12.
onMinTerm.OrderByDescending(a => a[2]);. That said, take a look at meta.stackexchange.com/questions/66377/what-is-the-xy-problem