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';
        }
    }