Add new `Performance/SortWithBlock` cop by koic · Pull Request #3500 · rubocop/rubocop

Feature This cop identifies places where sort { |a, b| a.foo <=> b.foo } can be replaced by sort_by(&:foo). % cat test.rb # frozen_string_literal: true array = [1, 2, 3] array.sort { |a...