Unify the case of tag components somewhat.

Make some ASCII-only tag components or their first letter lowercase,
sort all tags case-insensitively.

Tested briefly, seems to work.