I have this class:
public class Leg
{
public int Day { get; set; }
public int Hour { get; set; }
public int Min { get; set; }
}
I have a function that gets a list of legs, called GetLegs()
List<Leg> legs = GetLegs();
Now I would like to sort this list. So I first have to consider the day, then the hour, and at last the minute. How should I solve this sorting?
Thanks