NameSorter is a simple console in C# that sorts a list of names according to condition : Given a set of names, order that set first by last name, then by any given names the person may have. A name must have at least 1 given name and may have up to 3 given names.
The project is build using Visual Studio 2017, .NET framework 4.6.1
Given a file called unsorted-names-list.txt containing the following list of names;
Orson Milka Iddins
Erna Dorey Battelle
Flori Chaunce Franzel
Odetta Sue Kaspar
Roy Ketti Kopfen
Madel Bordie Mapplebeck
Selle Bellison
Leonerd Adda Mitchell Monaghan
Debra Micheli
Hailey Avie AnnakinExecuting the program in the following way; Will result the sorted names to screen;
cd ./path-to-executable
name-sorter ./unsorted-names-list.txt
Hailey Avie Annakin
Erna Dorey Battelle
Selle Bellison
Flori Chaunce Franzel
Orson Milka Iddins
Odetta Sue Kaspar
Roy Ketti Kopfen
Madel Bordie Mapplebeck
Debra Micheli
Leonerd Adda Mitchell Monaghanand a file will be generated in the working directory called sorted-names-list.txt containing the sorted names.