sorting in tag_census.py