Hello again! ??
I can understand how tag output inconsistencies can be frustrating and you’re right; sitewide coding consistency is a good thing to have. After all, theme developers (and webmasters in general) are encouraged to stick to coding patterns when developing themes.
Unfortunately at the moment, there isn’t really a fix for it (I don’t think, but granted, I haven’t investigated any plugins) aside from sticking to just the Text Editor and never swapping to Visual or simply disable Visual for the time being.
I reproduced the tag order swapping issue myself when I enabled Visual Editor and as such, I submitted a trac ticket to Core on behalf of this thread in hopes of getting the issue addressed. ??
https://core.trac.www.ads-software.com/ticket/28191