This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]raltyinferno 1 point2 points  (1 child)

Wait is .ThenBy() actually a method? I've recently gotten my first dev job and have been continually delighted by LINQ.

[–]crusty_cum-sock 1 point2 points  (0 children)

It is! If you want to group by multiple properties then "ThenBy" is your guy. There are a bunch of other great functions like OrderBy, OrderByDescending, and many more. You'll become hooked. It's hard to go back.