summaryrefslogtreecommitdiff
path: root/data/script.js
diff options
context:
space:
mode:
Diffstat (limited to 'data/script.js')
-rw-r--r--data/script.js3
1 files changed, 3 insertions, 0 deletions
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);
}
});