Data tags ordering logic?

Is there any logic to how /data get entity ENTITY Tags sorts the tags? I see that doing /tag ENTITY list sorts it alphabetically, but the /data command doesn't.

Continue to help post