add sorting and descending order to the tags