Help for this page

Select Code to Download


  1. or download this
    var sorted = someList.OrderBy( _ => _.Foo ).ThenBy( _ => _.Bar );
    
  2. or download this
    var sorted =
       from item in someList
       orderby item.Foo, item.Bar
       select item;