Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to sort several strings into alphabetical order?

Status
Not open for further replies.

Mizugori

Programmer
May 21, 2007
56
US
Is there a way to compare elements of an array and re-order them? i.e. if I have five elements to an array and each of them contains an email address, can I somehow sort them and relocate them in the array so that array[0] = the email address that comes first alphabetically, and array[4] = the email address that comes last alphabetically?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top