I have a file with an html code inside it

Is there a way to sort the content by names? such that the file is now sorted like:

Thanks 🙂
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, simply run this command :
I think you have an error in your wanted output : Chan should be before deLtorro.
By the way, can you tell us what are you trying to achieve finally ? Maybe that’s not the better way.