Sort tags by occurrence.