LP#1302207 - Order AddedContent identifiers
authorThomas Berezansky <tsbere@mvlc.org>
Fri, 11 Apr 2014 20:05:07 +0000 (16:05 -0400)
committerBen Shum <bshum@biblio.org>
Thu, 7 Aug 2014 15:07:37 +0000 (11:07 -0400)
When multiple exist coming out in a consistent order is preferred.

In this case, use ID order.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/perlmods/lib/OpenILS/WWW/AddedContent.pm

index e1c0bf0..276dcc9 100644 (file)
@@ -224,7 +224,10 @@ sub get_rec_keys {
                     ]
                 }
             ]
-        }
+        },
+        order_by => [
+                { class => 'mfr', field => 'id' }
+            ]
     });
 }