[Source]
# File rss/rss.rb, line 35 def sort_by collect do |x| [yield(x), x] end.sort do |x, y| x[0] <=> y[0] end.collect! do |x| x[1] end end
[Validate]