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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remove duplicates from list and sort

Status
Not open for further replies.

hard2bhumble

Technical User
Sep 9, 2006
2
0
0
GB
I am trying to remove duplicates from a comma separated list and sort it alphabetically. I'm not sure of the best method. I have achieved what I want the long way, but I think I should be able to use a Sorted Set, list or collection to achieve the same thing far more efficiently.
does anyone have any suggestions?
(e.g.) One, Five, Seven, One, Three, Four --> One, Three, Four, Five, Seven
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top