Is there is a way to sort 2D array based on one field ?
Mine is an array Card(suit, rank). I want to sort it based on rank.
priyanka85 0 Newbie Poster
Recommended Answers
Jump to PostMemorath, how would you do that what you said? Would like to see that too.
Jump to PostArrays aren't very suited for C#, in a language like C++ this problem would be much simpler since you can treat a multidimensional array like a flat array. Linq doesn't play nicely with arrays, and neither do many .net objects.
In C# you need to convert it, which is a …
Jump to PostHmm...apperantly code tags have changed. There no syntax highlighting and I can't edit my post :S
All 9 Replies
Momerath 1,327 Nearly a Senior Poster Featured Poster
priyanka85 0 Newbie Poster
Mitja Bonca 557 Nearly a Posting Maven
Momerath 1,327 Nearly a Senior Poster Featured Poster
thines01 401 Postaholic Team Colleague Featured Poster
Mitja Bonca 557 Nearly a Posting Maven
Momerath 1,327 Nearly a Senior Poster Featured Poster
skatamatic 371 Practically a Posting Shark
skatamatic 371 Practically a Posting Shark
Dani commented: Your post looks fine to me. +13
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.