make insertOrderedFields insert in /ascending/ order instead of descending. doh
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 3 Sep 2010 19:55:06 +0000 (19:55 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 3 Sep 2010 19:55:06 +0000 (19:55 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@17486 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/dojo/MARC/Record.js

index 163dc32..d2f6b1d 100644 (file)
@@ -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;