Closes #307 - added sorting into search service in restful api