Viewing CSV Files IIa

Agility Kata „Viewing CSV Files IIa“

Extend the CSV viewer application in the following way: add an additional menu item „S)ort“. If the users presses „S“ she is prompted to enter a column name. If a correct column name is entered the CSV data will be sorted by that column. The current page will be re-displayed because the data to display on this page may have changed because of the ordering.

The display should look like this:

No.|Name |Age|City    |
 1.|Peter|42 |New York|
 2.|Paul |57 |London  |
 3.|Mary |35 |Munich  |
Page 1 of 3
F)irst page, P)revious page, N)ext page, L)ast page, J)ump to page, S)ort, E)xit

Please enter column name to sort on: