From: Sam Kong Date: 2006-09-21T00:40:14+09:00 Subject: Re: What's the ruby way to sort string with cases in mind Hi, WATANABE Hirofumi wrote: > Hi, > > "Rimantas Liubertas" writes: > a.sort{ |i,j| [i.upcase, i] <=> [j.upcase, j] } > > a.sort_by{ |i| [i.upcase, i] } Wow! This is what I was looking for. Why couldn't I think of this? Thank you very much. Sam