added comparator for word collection alphabetical sorting