Sortmerna api

App controller + accompanying unit tests
good idea, thanks.