finish tag sorting