Order case alternatives by tag after parse