Sortmerna api

App controller + accompanying unit tests
Same here (and applies to the next 3 statements)