diff --git a/app/scripts/classes/prefix-parser.js b/app/scripts/classes/prefix-parser.js index ce04bb6..036f5a8 100644 --- a/app/scripts/classes/prefix-parser.js +++ b/app/scripts/classes/prefix-parser.js @@ -43,7 +43,7 @@ class PrefixParser { const key = this._getKeyByValue(dict, p); if(key) ids.push(parseInt(key)); } - return ids.sort((a, b) => a - b); // JS sort alphabetically, same old problem + return ids; } /** @@ -65,7 +65,7 @@ class PrefixParser { // Check if the key exists in the dict if (id in dict) prefixes.push(dict[id]); } - return prefixes.sort(); + return prefixes; } }