Issue #8422 has been updated by matz (Yukihiro Matsumoto).

Status changed from Open to Feedback

It can be done by a.sort{|a,b| b<=>a}.  Do we really need to define new methods?

Matz.

----------------------------------------
Feature #8422: add Enumerable#reverse_sort and Enumerable#reverse_sort_by
https://bugs.ruby-lang.org/issues/8422#change-39419

Author: Hanmac (Hans Mackowiak)
Status: Feedback
Priority: Normal
Assignee: 
Category: 
Target version: 


they are better when you want descending order,
  enum.sort.reverse
does work too, but it is to slow because it needs to build that result array twice

they both can be defined just like #sort and #sort_by but negates the result of the compare block


-- 
http://bugs.ruby-lang.org/