private function getListingOrder($contentType)
    {
        // An empty default isn't set in config yet, arrays got to hate them.
        if (isset($contentType['taxonomy'])) {
            $taxonomies = $this->getOption('taxonomy');
            foreach ($contentType['taxonomy'] as $taxonomyName) {
                if ($taxonomies[$taxonomyName]['has_sortorder']) {
                    // Let getContent() handle it
                    return null;
                }
            }
        }

        return $this->getOption('theme/listing_sort') ?: $this->getOption('general/listing_sort');
    }
private function getListingOrder($contentType)
    {
        // An empty default isn't set in config yet, arrays got to hate them.
        if (isset($contentType['taxonomy'])) {
            $taxonomies = $this->getOption('taxonomy');
            foreach ($contentType['taxonomy'] as $taxonomyName) {
                if ($taxonomies[$taxonomyName]['has_sortorder']) {
                    // Let getContent() handle it
                    return null;
                }
            }
        }

        return $this->getOption('theme/listing_sort') ?: $this->getOption('general/listing_sort');
    }
private function getListingOrder ( $ contentType ) { // An empty default isn't set in config yet, arrays got to hate them. if ( isset ( $ contentType [ 'taxonomy' ] ) ) { $ taxonomies = $ this -> getOption ( 'taxonomy' ) ; foreach ( $ contentType [ 'taxonomy' ] as $ taxonomyName ) { if ( $ taxonomies [ $ taxonomyName ] [ 'has_sortorder' ] ) { // Let getContent() handle it return null ; } } } return $ this -> getOption ( 'theme/listing_sort' ) ? : $ this -> getOption ( 'general/listing_sort' ) ; }
Return the listing order.

If the ContentType's sort is false (default in Config::parseContentType),
either:
- we let `getContent()` sort by itself
- we explicitly set it to sort on the general/listing_sort setting

@param ContentType|array $contentType

@return null|string
Return the listing order .