From: Robert Klemme Date: 2006-09-20T20:20:07+09:00 Subject: Re: What's the ruby way to sort string with cases in mind On 20.09.2006 10:56, Rimantas Liubertas wrote: >> >> a.sort{ |i,j| [i.upcase, i] <=> [j.upcase, j] } >> >> a.sort_by{ |i| [i.upcase, i] } > > Great! I guess we have the winner :) +1 robert