Skip to content

Commit

Permalink
Merge branch 'MDL-55382-34' of git://github.com/damyon/moodle into MO…
Browse files Browse the repository at this point in the history
…ODLE_34_STABLE
  • Loading branch information
David Monllao committed Jan 15, 2018
2 parents c4107de + 60f544f commit 440989a
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3099,6 +3099,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 @@ -3195,6 +3198,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
Loading

0 comments on commit 440989a

Please sign in to comment.