Merge branch 'MDL-55382-master' of git://github.com/damyon/moodle

This commit is contained in:
David Monllao 2018-01-15 10:05:05 +01:00
commit e3d292301e
4 changed files with 26 additions and 5 deletions

View File

@ -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);
@ -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);

View File

@ -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);
@ -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);

View File

@ -86,6 +86,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);
@ -182,6 +185,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);