I think one of the assumptions (although not clearly stated) is that no string has repeated characters in it.
Very inventive code though!
Update: Maybe a regexp to eliminate any string with duplicate letters. As though things weren't bad enough :)
If the code and the comments disagree, then both are probably wrong. -- Norm Schryer
In reply to Re: Re: Re: Re: Sorting characters within a string
by jlongino
in thread Sorting characters within a string
by robsv
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |