class RuboCop::Cop::Performance::SortReverse
def on_block(node)
def on_block(node) sort_with_block?(node) do |send, var_a, var_b, body| replaceable_body?(body, var_b, var_a) do register_offense(send, node) end end end
def on_block(node) sort_with_block?(node) do |send, var_a, var_b, body| replaceable_body?(body, var_b, var_a) do register_offense(send, node) end end end