Open the document you have and copy its contents into an Excel document. If you don't have Excel, you can use Google Docs to create a document. Once you have pasted the lines, use Sort and Filter option and choose Sort A to Z and you will have the result you want.