class StaticController < ApplicationController
  def homepage
    @projects = Project.limit(200).sample(14).sort_by(&:name)
    @users = User.limit(200).sample(45)
    @pull_requests = PullRequest.order('created_at desc').limit(5)
    @quote = Quote.random
  end
end

class StaticController < ApplicationController
  def homepage
    @projects = Project.limit(200).sample(14).sort_by(&:name)
    @users = User.order('pull_requests_count desc').limit(200).sample(45)
    @pull_requests = PullRequest.order('created_at desc').limit(5)
    @quote = Quote.random
  end
end

Choose devs for the homepage who have at more pull requests
Choose devs for the homepage who have at more pull requests
