Below is an excerpt of a web sources script I'm using heavily for tagging audio files. The script inserts two COMMENT tags. The first tag is "COMMENT", the second one is "COMMENT KEYWORDS". This is perfectly legal from the spec point of view and also has been discussed earlier here in this forum.
In previous builds the order of the sayuntil statements determined the order of the tags in the mp3 file. Because Windows XP, winamp and most hardware mp3 players usually display only the first COMMENT tag the new behaviour (COMMENT KEYWORDS is always inserted before COMMENT) is a big problem for me. I do not want to see keywords were I used to get the mp3 description before.
I do not have access to all previous betas, but I am sure that the ordering has been changed in between mp3tag 2.39n (works fine) and 2.39o (tag ordering is fixed, COMMENT KEYWORDS is always first).
Please let me know if you need more infos...
u302320
if "Inhaltsangabe:"
outputto "COMMENT"
moveline 1
findinline ">"
joinuntil "</td>"
killtag "br" "~~~"
killtag "*"
regexpreplace "~~~" "\D\A"
sayuntil "</td>"
endif
# --- Comment with content description "Keywords"
gotoline 1
findline "Schlagwörter:" 1 1
findinline "><i>" 1 1
if "Schlagwörter:"
outputto "COMMENT KEYWORDS"
# outputto "KEYWORDS"
# sayoutput "COMMENT KEYWORDS"
moveline 1
findinline ">"
sayuntil "</td>"
endif