Project

General

Profile

Actions

Feature #69288

closed

SEARCHRESULT Content Object Ordering

Added by Gregor Favre about 9 years ago. Updated over 8 years ago.

Status:
Rejected
Priority:
Could have
Assignee:
-
Category:
Content Rendering
Target version:
-
Start date:
2015-08-24
Due date:
% Done:

0%

Estimated time:
2.00 h
PHP Version:
Tags:
Complexity:
easy
Sprint Focus:

Description

The documentation states, that with the config directive "noOrderBy" the search result can be selected from the database unordered. When boolean false, the result is ordered by 'pages.lastUpdated, pages.tstamp' ascending. When boolean true, no ordering is applied, i.e. the result is output by the time of which a record has been input in the database.

From my point of view, it would make more sense to order descending (newest pages first, instead of oldest pages first). Or even better, a config directive to specify, which fields should be sorted in which order, like the following example:

.OrderBy = pages.title ASC
.OrderBy = pages.uid DESC

and so on.

The code should be changed in \TYPO3\CMS\Frontend\ContentObject\SearchResultContentObject around line 209.

Easy fix: Add Order Descending
Awesome fix: Add new config directive

Actions

Also available in: Atom PDF