add implementation of Comparable interface to TagName to facilitate sorting.