sort list of tags by number of occurrences