Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
Fix ODM Sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
Jens Averkamp committed Sep 22, 2014
1 parent 032bbe5 commit fbb95d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Driver/ODM/TimelineManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ public function getTimeline(ComponentInterface $subject, array $options = array(
$options = $resolver->resolve($options);

$qb = $this->getBaseQueryBuilder($options['type'], $options['context'], $subject)
->sort('createdAt desc, id desc')
->sort('createdAt', 'desc')
->sort('id', 'desc')
;

$results = $this->resultBuilder->fetchResults($qb, $options['page'], $options['max_per_page'], $options['filter'], $options['paginate']);
Expand Down

0 comments on commit fbb95d0

Please sign in to comment.