how can I sort rows of a 2D array in ascending order?
FELIGO
0
Newbie Poster
Recommended Answers
Jump to PostHi, check here for solution.
Jump to PostHere is a code example:
public class ArrayComparer : System.Collections.IComparer { int ix; public ArrayComparer(int SortFieldIndex) { ix = SortFieldIndex; } public int Compare(object x, object y) { IComparable cx = (IComparable)((Array)x).GetValue(ix); IComparable cy = (IComparable)((Array)y).GetValue(ix); return cx.CompareTo(cy); } } /// <summary> /// The main entry point …
All 5 Replies
Mitja Bonca
557
Nearly a Posting Maven
Mitja Bonca
557
Nearly a Posting Maven
CsharpChico
1
Junior Poster in Training
FELIGO
0
Newbie Poster
thines01
401
Postaholic
Team Colleague
Featured Poster
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.