From: Martin DeMello Date: 2007-07-05T22:34:46+09:00 Subject: unintended consequence: string.sort irb(main):001:0> "hello world".sort => ["hello world"] (Because Enumerable#sort calls to_a, and String#to_a = [string]) However this is inconsistent with String#each, and almost certainly never what the user wants. I'd suggest String.split($/).sort.join($/). martin