As far as I know, you can't. However, you can define an object (or
structure) that represents each "row" in your current array, and store those
objects in a single-dimensional array or collection.
You can then implement the IComparer interface to define the criteria for
the objects should be sorted (e.g., first by LastName, then by FirstName, or
just by one particular property in the object -- the data in your current
first column.) Then, the objects will sort properly using Array.Sort.
http://msdn.microsoft.com/library/de...SortTopic1.asp http://msdn.microsoft.com/library/de...classtopic.asp
"tg" <tg*******@pop-server.houston.rr.com> wrote in message
news:KL*****************@twister.austin.rr.com...
How can I sort a two-dimension array on the first dimension in the array?
If there's not a way to do it, how can I return the values of the first
dimension so that I can sort the values myself (bubble sort, etc.)?
Thank you