Chapter 7Sorting and Grouping Queries

In This Chapter

Image Sorting Information

Image Grouping Information

“If they want peace, nations should avoid the pin-pricks that precede cannon shots.”

—Napoleon Bonaparte

The most common thing after selecting data is ordering that data. This chapter explores sorting information as well as the reverse capability of Language Integrated Query (LINQ), and looks at the brother of the select, grouping. LINQ supports ascending and descending sorts as well as secondary sorts. If you are familiar with something like Structured ...

Get LINQ Unleashed for C# now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.