Sortmerna api

App controller + accompanying unit tests
The flag documentation is incorrect, a value must be passed.