Skip to content
makolyte

makolyte

Solve real coding problems

  • About
  • C#
  • SQL

linq-concat

C# – Sort all but first element (Linq)

01/26/202509/03/2020 by Mak

To sort a list, except for the first element, you need to: This can be accomplished in a single line using Linq methods: I’ll show a full example and explain how this works. Example – sorting a list of people Let’s say we have a list of people, such as the following: Here’s how to … Read more

Categories C# Tags foreach, linq, linq-concat, linq-orderby, linq-skip, linq-take, sorting Leave a comment
About • Privacy Policy
© 2025 makolyte • Built with GeneratePress