From 0cbf1ba15b27f1e6f2b0f2318aa39c15ef43dd17 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Tue, 10 Mar 2020 15:11:07 +0000 Subject: [PATCH] Bug 21708: Sort MARC fields in TransformHtmlToMarc Content-Type: text/plain; charset=utf-8 Instead of pushing 999 in the front :) --- C4/Biblio.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/C4/Biblio.pm b/C4/Biblio.pm index f745b93d32..e64aa80d3e 100644 --- a/C4/Biblio.pm +++ b/C4/Biblio.pm @@ -2359,6 +2359,7 @@ sub TransformHtmlToMarc { } } + @fields = sort { $a->tag() cmp $b->tag() } @fields; $record->append_fields(@fields); return $record; } -- 2.11.0