diff --git a/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/SortOperation.php b/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/SortOperation.php index 6b00ac65500..38464a0ab02 100644 --- a/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/SortOperation.php +++ b/Neos.ContentRepository.NodeAccess/Classes/FlowQueryOperations/SortOperation.php @@ -113,12 +113,9 @@ public function evaluate(FlowQuery $flowQuery, array $arguments) // Determine the property value to sort by foreach ($nodes as $node) { - if ($sortProperty[0] === '_') { - $propertyValue = \Neos\Utility\ObjectAccess::getPropertyPath($node, substr($sortProperty, 1)); - } else { - $propertyValue = $node->getProperty($sortProperty); - } + $propertyValue = $node->getProperty($sortProperty); + // todo how to sort by creation date in Neos 9?? Something like node.timestamps.originalCreated if ($propertyValue instanceof \DateTime) { $propertyValue = $propertyValue->getTimestamp(); }