From 0411957f73fa047285f53dca61b19fee3213ce9f Mon Sep 17 00:00:00 2001 From: Ryan Higgins Date: Wed, 23 Jul 2008 15:04:19 -0500 Subject: [PATCH] Update holdings sort to sort by items.enumchron if there's no serial record and the biblio.serial flag is set. Signed-off-by: Joshua Ferraro --- C4/Items.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Items.pm b/C4/Items.pm index fa31f52327..74196e959e 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -1261,7 +1261,7 @@ sub GetItemsInfo { } $sth->finish; if($serial) { - return( sort { $b->{'publisheddate'} cmp $a->{'publisheddate'} } @results ); + return( sort { ($b->{'publisheddate'} || $b->{'enumchron'}) cmp ($a->{'publisheddate'} || $a->{'enumchron'}) } @results ); } else { return (@results); } -- 2.39.5