diff --git a/meshmail.js b/meshmail.js index 20220dd0..d32323e5 100644 --- a/meshmail.js +++ b/meshmail.js @@ -27,6 +27,7 @@ module.exports.CreateMeshMail = function (parent, domain) { obj.verifyemail = false; obj.domain = domain; //obj.mailTemplates = {}; + const sortCollator = new Intl.Collator(undefined, { numeric: true, sensitivity: 'base' }) const constants = (obj.parent.crypto.constants ? obj.parent.crypto.constants : require('constants')); // require('constants') is deprecated in Node 11.10, use require('crypto').constants instead. function EscapeHtml(x) { if (typeof x == "string") return x.replace(/&/g, '&').replace(/>/g, '>').replace(/