mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
8ee785a17f
The latter has the same speed as the former in the worst case and faster in general, because it is always better to sort less items. Unfortunately, `routes.select!{...}.sort_by!{...}` is not possible here because `select!` returns `nil`, so select! and sort! must be done in two steps. |
||
---|---|---|
.. | ||
http | ||
journey | ||
middleware | ||
request | ||
routing | ||
testing | ||
journey.rb | ||
railtie.rb | ||
routing.rb |