From: matz@... (Yukihiro Matsumoto) Date: 2000-12-09T23:47:58+09:00 Subject: [ruby-talk:6967] Re: sorting strings Hi, In message "[ruby-talk:6955] sorting strings" on 00/12/09, Raja S. 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.