Hi,

In message "[ruby-talk:6955] sorting strings"
    on 00/12/09, Raja S. <raja / cs.indiana.edu> writes:

|One would expect that sending the message #sort to a string would
|alphabetize it but:
|
|      'raja'.sort   #-> ['raja']
|
|      rather than   #-> 'aajr'
|
|Is this the desired behavior?

Yes.  Since String#each is line based, sort etc. are also based on
lines (i.e. string portions separated by newline).

							matz.