protected function storeActiveSortInSession()
    {
        if (null !== $this->activeSortDescending) {
            $direction = $this->activeSortDescending ? 'desc' : 'asc';
        } else {
            $direction = null;
        }

        $this->getListMemory()->setSortData($this->activeSort, $direction);
    }