original_string: protected function retrieveActiveSortFromSession()
      {
          $sessionSort = $this->getListMemory()->getSortData();
  
          if ( ! is_array($sessionSort)) return;
  
          $this->activeSort = array_get($sessionSort, 'column');
  
          $direction = array_get($sessionSort, 'direction');
  
          if (null === $direction) {
              $this->activeSortDescending = null;
          } else {
              $this->activeSortDescending = $direction === 'desc';
          }
      }
code: protected function retrieveActiveSortFromSession()
      {
          $sessionSort = $this->getListMemory()->getSortData();
  
          if ( ! is_array($sessionSort)) return;
  
          $this->activeSort = array_get($sessionSort, 'column');
  
          $direction = array_get($sessionSort, 'direction');
  
          if (null === $direction) {
              $this->activeSortDescending = null;
          } else {
              $this->activeSortDescending = $direction === 'desc';
          }
      }
code_tokens: protected function retrieveActiveSortFromSession ( ) { $ sessionSort = $ this -> getListMemory ( ) -> getSortData ( ) ; if ( ! is_array ( $ sessionSort ) ) return ; $ this -> activeSort = array_get ( $ sessionSort , 'column' ) ; $ direction = array_get ( $ sessionSort , 'direction' ) ; if ( null === $ direction ) { $ this -> activeSortDescending = null ; } else { $ this -> activeSortDescending = $ direction === 'desc' ; } }
docstring: Retrieves the sort settings from the session and restores them as active.
docstring_tokens: Retrieves the sort settings from the session and restores them as active .