# 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.

Python
Java
C++
C
PHP
JavaScript

C
C++
Java
JavaScript
PHP
Python


"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.

Python
Java
C++
C
PHP
JavaScript

C
C++
Java
JavaScript
PHP
Python