Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • 11
    Guess I should fully get through the API before asking the question ;) It also looks like you can chain .ThenBy() statements as many times as you need to. Thanks again! Commented Feb 23, 2010 at 14:51
  • 33
    what about .AndThen() Commented Aug 8, 2013 at 18:54
  • 86
    No .AndThen()! Commented Aug 19, 2013 at 7:54
  • 7
    (function AndThen() { AndThen() })() Commented Apr 16, 2015 at 14:24
  • 7
    NOTE: .OrderBy() and .ThenBy() return an IOrderedEnumerable, which does not modify the original object. So, you need to assign to a variable and end with ToList() to use the new ordered list elsewhere. Commented Jul 16, 2019 at 17:12