Sort lines alphabetically online
This online tool sorts the sentences you input alphabetically. Copy your text, paste it in the form, and click the button. The sorted sentences will appear in the right textarea. The below is an example.
"C++" is placed before "C" in the inputting text but placed after in the output. The sentences are sorted in alphabetical order.
If a sentence has the leading or trailing spaces, those are automatically removed. Whether a sentence has those or not doesn't influence the output order.