I wrote a membership program for our local senior center but I can't figure out how to create a alphabetized file so I can send it to a printer.

For instance:

File Names.dat contains
Mary
Jack
Sally
Andrew

I need to create a new alphabetized file.

I know a simple bubble sort routine will do this but I don't know how to do it. Can someone please help me?