Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'MDL-55382-33' of git://github.com/damyon/moodle into MO…
…ODLE_33_STABLE
  • Loading branch information
David Monllao committed Jan 15, 2018
2 parents 330fa04 + d716aa1 commit 20c6e36
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 5 deletions.
Expand Up @@ -3098,6 +3098,9 @@ var QUICKCOMMENTLIST = function(editor) {
jsondata.width,
jsondata.colour);
this.comments.push(quickcomment);
this.comments.sort(function(a, b) {
return a.rawtext.localeCompare(b.rawtext);
});
}
} catch (e) {
return new M.core.exception(e);
Expand Down Expand Up @@ -3194,6 +3197,10 @@ var QUICKCOMMENTLIST = function(editor) {
comment.colour);
this.comments.push(quickcomment);
}, this);

this.comments.sort(function(a, b) {
return a.rawtext.localeCompare(b.rawtext);
});
}
} catch (e) {
return new M.core.exception(e);
Expand Down

0 comments on commit 20c6e36

Please sign in to comment.