You are previewing LINQ Unleashed for C#.

LINQ Unleashed for C#

Cover of LINQ Unleashed for C# by Paul Kimmel Published by Sams
O'Reilly logo

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 ...

The best content for your career. Discover unlimited learning on demand for around $1/day.