protected function parseContenttypes()
    {
        $contentTypes = $this->config->get('contenttypes');
        foreach ($contentTypes as $type => $values) {
            $sort = $values['sort'] ?: '-datepublish';
            $this->orderBys[$type] = $sort;
            if (isset($values['singular_slug'])) {
                $this->orderBys[$values['singular_slug']] = $sort;
            }
        }
    }