How would you do to re-order the fields in a MARC::Record-record?
I just needed that kind of thing and after some struggeling came up with:
@{$record->{_fields}} =
sort {
lc($a->{_tag}) cmp lc($b->{_tag})
}
@{$record->{_fields}};
It seems to work, but I am in
On Fri, 13 May 2005, Leif Andersson wrote:
> How would you do to re-order the fields in a MARC::Record-record?
>
> I just needed that kind of thing and after some struggeling came up with:
>
> @{$record->{_fields}} =
> sort {
> lc($a->{_tag}) cmp lc($b->{_tag})
>}
>