Sort params maintenance on search and browse endpoint

Added swagger documentation for sort param.
Created tests.
Sort query param is now decoded to prevent URL encoding issues