Sorting a Multi-Dimensional Array with LINQ(informit.com)

submitted by estherschindlerestherschindler(550) 2 years, 5 months ago

In Sorting a Multi-Dimensional Array, I showed how to use the IComparer interface to sort multi-dimensional arrays--something that the built-in Array.Sort method can't do. That article was written several years ago, before the introduction of generics and before LINQ. Whereas it's easy enough to modify the example code so that it works with generics, getting LINQ to sort those arrays seems to stump some people.

add a comment |category: |Views: 108

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story