I have the following list:
public class Address{
public string Number { get; set; }
public string Street { get; set; }
public string Suburb { get; set; }
}
List<Address> MyAddressList = new List<Address>();
and what I want to do is sort this list by Suburb and then Street. I have seen that I can sort by one of the properties (Suburb in this case):
MyAddressList = MyAddressList.OrderBy( x => x.Suburb ).ToList();
but I want to sort by Suburb then Street. Thanks