From: pines Date: Mon, 4 Sep 2006 18:25:44 +0000 (+0000) Subject: for sort: treat AN as an article, and kill leading spaces X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8273717410b89883ec8c0950fbac7074deb98f18;p=Evergreen.git 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 --- 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();