Couldn't you just do

sort_by{|e| [e.name, e.time]}.reverse

?
-- 
Posted via http://www.ruby-forum.com/.