Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

  • Administrators
Posted

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.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...