From b414e9adeb06c54dac057da3a1690764b53f6dcd Mon Sep 17 00:00:00 2001 From: MillenniumEarl Date: Thu, 3 Dec 2020 11:59:27 +0100 Subject: [PATCH] Removed sorting of results --- app/scripts/classes/prefix-parser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } }