someList.Sort( (a, b) => { int rv = a.Foo.CompareTo(b.Foo); if (rv == 0) { rv = a.Bar.CompareTo(b.Bar); } return rv; } );