Jelmer Posted July 21, 2006 Posted July 21, 2006 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 Quote
Administrators PlausiblyDamp Posted July 21, 2006 Administrators Posted July 21, 2006 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. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Jelmer Posted July 27, 2006 Author Posted July 27, 2006 i found it: string[,] customers,products; It works great! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.