How can we sort the bottom three lines of friends.txt in alphabetical order with a single command line?

tail -3 friends.txt | sorttail -3 friends.txt >> sorttail friends.txt | sortsort | tail -3 friends.txt

Unbelievable! We use tail -3 to display the bottom three lines of the text file and use the pipe to redirect the output to sort.

Dang! We use tail -3 to display the bottom three lines of the text file and use the pipe to redirect the output to sort.