daily WTF
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 8 Aug 2006 19:07:19 +0000 (19:07 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 8 Aug 2006 19:07:19 +0000 (19:07 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5376 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js

index fa25eef..6050cd0 100644 (file)
@@ -57,13 +57,15 @@ function my_init() {
                                ).sort(
                                        function(a,b) {
                                                a = a[1]; b = b[1];
-                                               if (a == '082' || b == '082') return -1; 
-                                               if (a == '092' || b == '092') return -1; 
+                                               if (a == '082') return -1; 
+                                               if (b == '082') return 1; 
+                                               if (a == '092')  return -1; 
+                                               if (b == '092')  return 1; 
                                                if (a < b) return -1; 
                                                if (a > b) return 1; 
                                                return 0;
                                        }
-                               ).reverse()
+                               )
                        ); hbox.appendChild(ml);
                        ml.setAttribute('editable','true');
                        ml.setAttribute('width', '200');