Popularity.group(:talent_id).order('count_talent_id desc').count(:talent_id)
`talent_id``count`
* ActiveRecordgroup byorder - RubyRails
* ruby on rails - "Order by" result of "group by" count? - Stack Overflow
Popularity.group(:talent_id).order('count_talent_id desc').count(:talent_id)
`talent_id``count`
* ActiveRecordgroup byorder - RubyRails
* ruby on rails - "Order by" result of "group by" count? - Stack Overflow