Bug 24940: Serials statistics wizard: order vendor list alphabetically
[koha.git] / reports / serials_stats.pl
index 0c5ed28..a27c404 100755 (executable)
@@ -138,7 +138,8 @@ if($do_it){
     my $sth = $dbh->prepare("SELECT aqbooksellerid, aqbooksellers.name 
                                 FROM subscription 
                                   LEFT JOIN aqbooksellers ON (subscription.aqbooksellerid=aqbooksellers.id ) 
-                                GROUP BY aqbooksellerid");
+                                ORDER BY aqbooksellers.name ASC
+                               ");
     $sth->execute();
     
     while(my $row = $sth->fetchrow_hashref){