View | Details | Raw Unified | Return to bug 41685
Collapse All | Expand All

(-)a/C4/AuthoritiesMarc.pm (-2 / +1 lines)
Lines 1244-1250 sub _marc21_sort_hierarchy_alpha { Link Here
1244
            $b_hier = 'gh' if $b_hier !~ /^[gh]$/;
1244
            $b_hier = 'gh' if $b_hier !~ /^[gh]$/;
1245
1245
1246
            # When hierarchy does not resolve, sort on $a
1246
            # When hierarchy does not resolve, sort on $a
1247
            $a_hier cmp $b_hier || $a->subfield('a') cmp $b->subfield('a');
1247
            $a_hier cmp $b_hier || ( ( $a->subfield('a') // q{} ) cmp( $b->subfield('a') // q{} ) );
1248
        } @fields
1248
        } @fields
1249
    );
1249
    );
1250
}
1250
}
1251
- 

Return to bug 41685