Skip to content

Instantly share code, notes, and snippets.

x = {};
$('#comments_list strong').each(
function(){
if(!x[this.innerHTML]) x[this.innerHTML] = 0;
x[this.innerHTML]++;
}
);
var t = [];
for (var g in x) t.push([g, x[g]]);
t.sort(function(a,b) {return b[1] - a[1]});