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. |
||
---|---|---|
.. | ||
gtg | ||
nfa | ||
nodes | ||
path | ||
router | ||
visualizer | ||
backwards.rb | ||
formatter.rb | ||
parser_extras.rb | ||
parser.rb | ||
parser.y | ||
route.rb | ||
router.rb | ||
routes.rb | ||
scanner.rb | ||
visitors.rb |