consistent capitalization and sorting