Browse files

Sort by score

  • Loading branch information...
1 parent bbe69a3 commit 47226af92b1dbcae14e25f206b43fb9c4a3c34e1 @andyw8 andyw8 committed Jul 2, 2012
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

0 comments on commit 47226af

Please sign in to comment.