On Thursday, April 25, 2002, at 01:03 , Yates, Glen wrote:
> Ok here's a shot at it: > > put "" into tempVariable > put "" into outputVariable > repeat for each char i in yourVariable > put i & return after tempVariable > end repeat > sort lines of tempVariable > repeat for each line i in tempVariable > put i after outputVariable > end repeat Just out of idle curiosity, I tried: put ""rubbish" into theBin set itemDelimiter to empty sort items of theBin Rev crashed. Funny, that. cheers David > > I wrote this off the top of my head, maybe there's an easier way, but > this > should work. Note: this does not change your original variable, but > puts the > sorted data into a new variable "outputVariable". If you want your > original > variable to be sorted and changed, then use the following code: > > put "" into tempVariable > repeat for each char i in yourVariable > put i & return after tempVariable > end repeat > sort lines of tempVariable > put "" into yourVariable > repeat for each line i in tempVariable > put i after yourVariable > end repeat > > Hope this helps, > -Glen Yates > > -----Original Message----- > From: Richard James [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, April 24, 2002 9:26 AM > To: [EMAIL PROTECTED] > Subject: Character sort > > > Please help. > > I need a quick way to ASCII sort the letters of a one word variable. > > Thanks > Richard James > _______________________________________________ > use-revolution mailing list > [EMAIL PROTECTED] > http://lists.runrev.com/mailman/listinfo/use-revolution > _______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
