do case insensitive string sorting even if we forget to specify the sort type
authorpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 30 Sep 2006 10:35:03 +0000 (10:35 +0000)
committerpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 30 Sep 2006 10:35:03 +0000 (10:35 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@6293 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/util/list.js

index 2b71d70..b34c13b 100644 (file)
@@ -919,6 +919,11 @@ util.list.prototype = {
                                                                                b = String( b ).toUpperCase();
                                                                        break;
                                                                }
+                                                       } else {
+                                                               if (typeof a == 'string' || typeof b == 'string') {
+                                                                       a = String( a ).toUpperCase();
+                                                                       b = String( b ).toUpperCase();
+                                                               }
                                                        }
                                                        if (a < b) return -1; 
                                                        if (a > b) return 1;