MDL-55382 assign: Sort editpdf quick list

This commit is contained in:
Damyon Wiese
2017-12-15 14:57:13 +08:00
parent 95b7be7f05
commit b6fdcd6071
4 changed files with 26 additions and 5 deletions
@@ -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);
File diff suppressed because one or more lines are too long
@@ -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);
@@ -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);