Sort tags for components