Sorting

sort a text file

sort file.txt > file_sorted.txt

sorting list of files (using unix pipe)

ls *.txt | sort