2d Array

Jelmer

Regular
Joined
Jan 11, 2006
Messages
96
Hello,

I like to order some strings in an array.
It are strings with 14 items, and a X count of items.

so:

Me, Mystreet, etc.

How can i order it well?

Gr. Jelmer
 
The built in Array.Sort routines only work with single dimension arrays, so if you want to keep the data as an array you will have to write your own sort routine :(

You might be better off (if it is suitable in your case) to create a class / structure to hold the information and create a single dimension array (or Arraylist / List<>) of your class and also provide an implementation of the IComparable interface.
 
Back
Top