From: miker Date: Fri, 3 Sep 2010 19:55:06 +0000 (+0000) Subject: make insertOrderedFields insert in /ascending/ order instead of descending. doh X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b8013804da0b92a44a2a69173a8b75d2cd8cf0bb;p=evergreen%2Fbjwebb.git 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 --- 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;