There's a way to turn off auto-capitalization on an iPhone through its Keyboard settings, and make sure that you only type what you want to type.
You can alphabetize data in an Excel spreadsheet by row or column using the "Sort" feature, or through the "Data" and "Home" tabs.