From 6ad42b102cb0653ce6307284e06dc359f7dc60ad Mon Sep 17 00:00:00 2001 From: pines Date: Sat, 30 Sep 2006 10:35:03 +0000 Subject: [PATCH] do case insensitive string sorting even if we forget to specify the sort type 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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Open-ILS/xul/staff_client/chrome/content/util/list.js b/Open-ILS/xul/staff_client/chrome/content/util/list.js index 2b71d7047c..b34c13bfb0 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/list.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/list.js @@ -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; -- 2.11.0