src/Sulu/Component/Rest/Listing/ListRestHelper.php
public function getSorting()
    {
        $sortOrder = $this->getRequest()->get('sortOrder', 'asc');
        $sortBy = $this->getRequest()->get('sortBy', 'id');

        return [$sortBy => $sortOrder];
    }
public function getSorting()
    {
        $sortOrder = $this->getRequest()->get('sortOrder', 'asc');
        $sortBy = $this->getRequest()->get('sortBy', 'id');

        return [$sortBy => $sortOrder];
    }
public function getSorting ( ) { $ sortOrder = $ this -> getRequest ( ) -> get ( 'sortOrder' , 'asc' ) ; $ sortBy = $ this -> getRequest ( ) -> get ( 'sortBy' , 'id' ) ; return [ $ sortBy => $ sortOrder ] ; }
Returns an array containing the desired sorting.

@return array
Returns an array containing the desired sorting .