From b8013804da0b92a44a2a69173a8b75d2cd8cf0bb Mon Sep 17 00:00:00 2001 From: miker Date: Fri, 3 Sep 2010 19:55:06 +0000 Subject: [PATCH] make insertOrderedFields insert in /ascending/ order instead of descending. doh git-svn-id: svn://svn.open-ils.org/ILS/trunk@17486 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/dojo/MARC/Record.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/web/js/dojo/MARC/Record.js b/Open-ILS/web/js/dojo/MARC/Record.js index 163dc32ee..d2f6b1d2b 100644 --- a/Open-ILS/web/js/dojo/MARC/Record.js +++ b/Open-ILS/web/js/dojo/MARC/Record.js @@ -72,7 +72,7 @@ if(!dojo._hasResource["MARC.Record"]) { var f = arguments[i]; var done = false; for (var j = 0; j < this.fields.length; j++) { - if (f.tag > this.fields[j].tag) { + if (f.tag < this.fields[j].tag) { this.insertFieldsBefore(this.fields[j], f); done = true; break; -- 2.11.0