From: Tim Ferrell Date: 2009-10-31T02:44:44+09:00 Subject: Re: two stage array sorting Perfect ... thanks so much! Cheers, Tim John W Higgins wrote: > require 'date' > > def sort_datetime_array(ary) > fmt = '%A %I:%M %p' > ary.sort{ |a,b| > DateTime.strptime(a, fmt) <=> DateTime.strptime(b, fmt) > } > end -- Posted via http://www.ruby-forum.com/.