From: Frédéric Marchal Date: Mon, 4 Jul 2011 11:55:27 +0000 (+0000) Subject: Use locale aware comparison when sorting tables X-Git-Tag: v2.3.2~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fbfe6664d02b76e54ef037af2722fa8648210e6;p=thirdparty%2Fsarg.git Use locale aware comparison when sorting tables --- diff --git a/sorttable/sorttable.js b/sorttable/sorttable.js index 2a10471..837c56c 100644 --- a/sorttable/sorttable.js +++ b/sorttable/sorttable.js @@ -264,9 +264,7 @@ sorttable = { return aa-bb; }, sort_alpha: function(a,b) { - if (a[0]==b[0]) return 0; - if (a[0]