commento.js: sort comments by score by default
This commit is contained in:
parent
8ebc0cd965
commit
b4f2ba41be
@ -587,6 +587,10 @@
|
||||
return null;
|
||||
}
|
||||
|
||||
cur.sort(function(a, b) {
|
||||
return a.score - b.score;
|
||||
});
|
||||
|
||||
var cards = create("div");
|
||||
cur.forEach(function(comment) {
|
||||
var commenter = commenters[comment.commenterHex];
|
||||
|
Loading…
Reference in New Issue
Block a user