I was wondering how I would sort this list of mine. Say i have class,
public class Foo
{
public float bar;
}
And say I have list
List<Foo> sortedList = new List<Foo>();
And I want to sort Foo by its variable bar. I am pretty sure i should use the linQ statement orderby, but i cant figure out how to sort by a variable in a class.