Merge remote branch 'kc/new/enh/bug_2170' into kcmaster
[srvgit] / cataloguing / additem.pl
index c6f9daf..c5dd7d9 100755 (executable)
@@ -2,6 +2,7 @@
 
 
 # Copyright 2000-2002 Katipo Communications
+# Copyright 2004-2010 BibLibre
 #
 # This file is part of Koha.
 #
@@ -611,6 +612,7 @@ foreach my $tag ( keys %{$tagslib}){
         } 
   }
 }
+@loop_data = sort {$a->{subfield} cmp $b->{subfield} } @loop_data;
 
 # what's the next op ? it's what we are not in : an add if we're editing, otherwise, and edit.
 $template->param( title => $record->title() ) if ($record ne "-1");