Implemented as per spec.pdf
dotnet restore dotnet build dotnet run --project GX.NameSorter.Runner ./GX.NameSorter.Runner/unsorted-names-list.txt
Or run it from cmd line from bin directory :)
dotnet restore dotnet build dotnet test
- No file format / contents validation required (txt file expected with no empty lines)
- File size expected to be within bounds of memory of the machine it run on. (no petabyte files here!)
- Person may have 1-3 given names but last name is not mandatory.
- If between 2-4 are on a given line, we assume last one will be the name.
- If more than 4 names in a line, assume other names are part of a multi last name.
- Names are expected to be separated by space only.
- Ordering is done by Ordinial Ignore Case string compare.
- No Logging / No Error handling around file IO expected.