Skip to content

ElementNetworks/NameSorter

Repository files navigation

NameSorter

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

Example Usage

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 Annakin

Executing 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 Monaghan

and a file will be generated in the working directory called sorted-names-list.txt containing the sorted names.

About

This sample project of SOLID for reading, parsing, sorting and writing text file of list of names

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages