Simple, I have a struct like this:
struct bla{ string name; float depth; }
I have an bla array, and I want to sort by depth, being the
using System.Linq;
System.Linq;
blas.OrderByDescending(x=>x.depth)
or
Array.Sort(blas, (x, y) => y.depth.CompareTo(x.depth) );