Skip to content

Commit

Permalink
Merge pull request #11 from ThomasDaSilva/main
Browse files Browse the repository at this point in the history
Fix Loop orderBy review date
  • Loading branch information
ThomasDaSilva authored Mar 29, 2024
2 parents 96cf974 + 0c6a4c1 commit cca50c2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Config/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<language>en_US</language>
<language>fr_FR</language>
</languages>
<version>1.0.9</version>
<version>1.0.10</version>
<authors>
<author>
<name>Chabreuil Antoine</name>
Expand Down
2 changes: 2 additions & 0 deletions Loop/GuaranteedProductLoop.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ public function buildModelCriteria(): GuaranteedOpinionProductReviewQuery|ModelC
$search->setOffset($offset)->setLimit($limit);
}

$search->orderByReviewDate(Criteria::DESC);

return $search;
}

Expand Down
2 changes: 2 additions & 0 deletions Loop/GuaranteedSiteLoop.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ public function buildModelCriteria(): GuaranteedOpinionProductReviewQuery|ModelC
$search->setOffset($offset)->setLimit($limit);
}

$search->orderByReviewDate(Criteria::DESC);

return $search;
}

Expand Down

0 comments on commit cca50c2

Please # to comment.