From: Yukihiro Matsumoto Date: 2005-10-19T23:32:46+09:00 Subject: Re: Array.sort when it's items are String inheritors with redefined <=> works like if not redefined Hi, In message "Re: Array.sort when it's items are String inheritors with redefined <=> works like if not redefined" on Wed, 19 Oct 2005 23:06:04 +0900, James Edward Gray II writes: |> a = ['1', '10', '5'] |> puts a.sort_by{|x|x.to_u}.join(',') | |I believe that second line is supposed to read: | | puts a.sort_by{|x|x.to_i}.join(',') Oops, you're right. Thank you for correction. matz.