e.g. https://beta.musicbrainz.org/work/bb56168b-dede-4fd2-bedf-3f3a8fbbaa43 currently has the following, which shows that they are neither sorted by type nor by value:
- ASCAP-ID: 430401611
- JASRAC-ID: 433719176
- ASCAP-ID: 433718935
- ASCAP-ID: 433719176
They should at least be sorted first by type and then by value, so that all IDs of the same type appear together, instead of having others arbitrarily inserted between them.
Ideally they should use the ordering information too, although we still don't use that for relationships, so perhaps that is a separate ticket.