Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use sort.reverse instead of sort { |a, b| b <=> a } #10247

Merged
merged 1 commit into from
Aug 3, 2020

Conversation

tas50
Copy link
Contributor

@tas50 tas50 commented Aug 3, 2020

It's faster. See rubocop/rubocop-performance#130

Signed-off-by: Tim Smith [email protected]

@tas50 tas50 requested review from a team as code owners August 3, 2020 22:24
@tas50 tas50 merged commit 9ea3dbb into master Aug 3, 2020
@tas50 tas50 deleted the rubocop_Performance_SortReverse branch August 3, 2020 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants