From: Yossef Mendelssohn Date: 2009-03-29T07:23:42+09:00 Subject: Re: Sorting decimal index numbers? On Mar 27, 11:04 pm, Matthias Reitinger wrote: >   arr = arr.sort_by do |x| >     x.split(".").map {|i| i.to_i} >   end Durr, of course that's better than my solution of transforming the array elements and then re-creating the original ones after the sort. For some reason, I completely forgot about sort_by. -- -yossef