Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Sort by score

  • Loading branch information...
commit 47226af92b1dbcae14e25f206b43fb9c4a3c34e1 1 parent bbe69a3
@andyw8 andyw8 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app.rb
View
2  app.rb
@@ -161,7 +161,7 @@ def get_high_scores(user, repo)
user_hash[:contributions] = stored_repo.contributions(user_hash[:login])
contributors_array << user_hash
end
- return contributors_array
+ return contributors_array.sort_by { |c| c[:contributions] }.reverse
rescue
raise "Sorry, this GitHub repository doesn't seem to exist or is private"
end
Please sign in to comment.
Something went wrong with that request. Please try again.