sort the elements alphabetically and in reverse so matching doesn't come
up short as in #17.