MDL-55382 assign: Sort editpdf quick list
This commit is contained in:
+7
@@ -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);
|
||||
|
||||
+5
-5
File diff suppressed because one or more lines are too long
+7
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user