On Fri, Sep 12, 2014 at 9:20 AM, Galen Charlton <[log in to unmask]> wrote:
> One caveat though -- at least in MARC21, re-sorting a MARC record
> strictly by tag number can be incorrect for certain fields...
This is absolutely true. In addition to the fields you mention, 4XX, 7XX,
and 8XX are also not necessarily in numerical order even if most records
contain them this way. There is no way to programatically determine the
correct sort. While this may sound totally cosmetic, it sometimes has use
implications. Depending on how the sort mechanism works, you could
conceivably reorder fields with the same number in the wrong order.
The original question was how to resort a MARC record after appending a
field which appears to be a control number. I would think it preferable to
iterate through the fields and place it in the correct position (I'm
assuming it's not an 001) rather than append and sort.
However, record quality is such a mixed bag nowadays and getting much worse
that tag order is the least of the corruption issues. Besides, most
displays normalize fields so heavily that these type of distinctions simply
aren't supported anymore.