From: pines Date: Sat, 30 Sep 2006 10:35:03 +0000 (+0000) Subject: do case insensitive string sorting even if we forget to specify the sort type X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6ad42b102cb0653ce6307284e06dc359f7dc60ad;p=evergreen%2Fpines.git 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 --- 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;