mirror of
https://gitlab.com/commento/commento.git
synced 2025-06-29 22:56:37 -04:00
commento.js: sort comments by score by default
This commit is contained in:
@ -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];
|
||||
|
Reference in New Issue
Block a user