---
 C4/Items.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/C4/Items.pm b/C4/Items.pm
index fa31f52..74196e9 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);
        }
-- 
1.5.5.GIT

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches

Reply via email to