From: Shai Rosenfeld Date: 2007-11-14T00:16:03+09:00 Subject: array ordering / selection according to elements - given that time1 < time2 < time3 < time4 ... (and are all Time objects) myarray= [ time1, time2, time3, time4, time5 , time6 , time7 , .. ] special_sort(time4)= [ time3, time4, time5 ] ...basically, passing an arg of a certain obj in the array to a "special_sort" func, how do i collect the "nearest" ones to it? thx for any suggestions -- Posted via http://www.ruby-forum.com/.