I have a file with the following data in it:
adam
humanities
castiel
sciences
antwon
sciences
dmitri
informatics
zoe
mathematics
bernard
economics
I want to be able to sort the file w.r.t the names of the people so that the output looks like so:
adam
humanities
antwon
sciences
bernard
economics
castiel
sciences
dmitri
informatics
zoe
mathematics
cat filename | sort
sorts all the data including the subjects. How do I sort it with the names of people?