is it possible to display names from a plain txt file and sort them alphabetically by surname? or just alphabetically as they stand? They are stored in a text file like so:

John Smith
Joe Brown
Ben Straw

Thanks.