mirror of
https://gitlab.com/commento/commento.git
synced 2025-04-28 18:40:29 -04:00
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…
x
Reference in New Issue
Block a user