From 8273717410b89883ec8c0950fbac7074deb98f18 Mon Sep 17 00:00:00 2001 From: pines Date: Mon, 4 Sep 2006 18:25:44 +0000 Subject: [PATCH 1/1] for sort: treat AN as an article, and kill leading spaces git-svn-id: svn://svn.open-ils.org/ILS/trunk@5927 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/chrome/content/util/list.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 a2fa0690d5..7efed0f0be 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/list.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/list.js @@ -876,8 +876,8 @@ util.list.prototype = { b = util.money.dollars_float_to_cents_integer(b); break; case 'title' : /* special case for "a" and "the". doesn't use marc 245 indicator */ - a = String( a ).toUpperCase().replace( /^(THE|A)\s+/, '' ); - b = String( b ).toUpperCase().replace( /^(THE|A)\s+/, '' ); + a = String( a ).toUpperCase().replace( /^\s*(THE|A|AN)\s+/, '' ); + b = String( b ).toUpperCase().replace( /^\s*(THE|A|AN)\s+/, '' ); break; default: a = String( a ).toUpperCase(); -- 2.43.2