private function getSortOrders(RequestInterface $request)
    {
        $sortOrders = [];

        if ($request->getSortOrders()) {
            $sortOrders = $this->sortOrderBuilder->buildSortOrders($request->getSortOrders());
        }

        return $sortOrders;
    }
private function getSortOrders(RequestInterface $request)
    {
        $sortOrders = [];

        if ($request->getSortOrders()) {
            $sortOrders = $this->sortOrderBuilder->buildSortOrders($request->getSortOrders());
        }

        return $sortOrders;
    }
private function getSortOrders ( RequestInterface $ request ) { $ sortOrders = [ ] ; if ( $ request -> getSortOrders ( ) ) { $ sortOrders = $ this -> sortOrderBuilder -> buildSortOrders ( $ request -> getSortOrders ( ) ) ; } return $ sortOrders ; }
Extract and build sort orders of the search request.

@param RequestInterface $request Search request.

@return array
Extract and build sort orders of the search request .