sorted and condensed, put repeated letters in condensed array