Actions
Patch #29299
closedUse Enumerable#sort_by instead of Enumerable#sort
Description
According to Fast Ruby, Enumerable#sort_by
is much faster than Enumerable#sort
. You can read details on https://github.com/JuanitoFatas/fast-ruby#enumerablesort-vs-enumerablesort_by-code.
This patch replaces sort with sort_by to improve performance.
Files
Actions