From 9fbf88661140cade527abfbf0d02c643504c579e Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Thu, 2 Nov 2017 13:53:52 +0100 Subject: Ignore non-letter characters when sorting protocols X-MAC and XMAC are the same now. --- data/script.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'data') diff --git a/data/script.js b/data/script.js index c3f6bc2..fd4d7f7 100644 --- a/data/script.js +++ b/data/script.js @@ -43,6 +43,9 @@ $(document).ready (function () { if (by == 'rank' || by == 'year') { return a > b ? 1 : (a < b ? -1 : 0); } else { + /* ignore non-letter chars */ + a = a.replace (/\W+/, ''); + b = b.replace (/\W+/, ''); return a.localeCompare (b); } }); -- cgit v1.2.3