comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » sorting the chars in a string
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
sorting the chars in a string [message #58635] Mon, 11 February 2008 06:39
elwood is currently offline  elwood
Messages: 23
Registered: February 2007
Junior Member
I've been trying to think of a simple way to alphabetically sort an
individual string

Say I have the string x="abdcf"
Is there a way to sort it and return a new string which is in correct
alphabetical order,
and/or reverse alphabetical order.

Maybe its obvious, but I havent worked with strings too much in IDL
and I cant seem to find
a way to do this (strsplit and stregex somehow??)

Thanks,
Elisha
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: MPFit: changing the cost function
Next Topic: Re: sorting the chars in a string

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 00:17:18 PDT 2025

Total time taken to generate the page: 0.56275 seconds