Commit 60b91817 authored by Michal Čihař's avatar Michal Čihař

Case insensitive sorting

parent ea7bf292
......@@ -83,6 +83,9 @@ function cell_cmp(a, b) {
if (a.indexOf('%') != -1 && b.indexOf('%') != -1) {
a = parseFloat(a.replace(',', '.'));
b = parseFloat(b.replace(',', '.'));
} else {
a = a.toLowerCase();
b = b.toLowerCase();
}
if (a == b) return 0;
if (a > b) return 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment