Patch #29299
Updated by Go MAEDA over 6 years ago
According to "Fast Ruby":https://github.com/JuanitoFatas/fast-ruby, @Enumerable#sort_by@ Ruby":https://github.com/JuanitoFatas/fast-ruby#enumerableselectlast-vs-enumerablereversedetect-code, Enumerable#sort_by is much faster than @Enumerable#sort@. 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.