Skip to content

How to sort a data object listing by data object modification date? #16827

Discussion options

You must be logged in to vote

@dariusmann The o_ prefixes have been removed in Pimcore 11. You must remove it:

$news = new News\Listing();
$news->setOrderKey('modificationDate');
$news->setOrder('DESC');

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dariusmann
Comment options

Answer selected by kingjia90
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants