Refactored REST call to service.
Fixed multiple REST calls on sort.