Skip to content

Commit

Permalink
Fix best of sort order
Browse files Browse the repository at this point in the history
bleistivt committed Feb 11, 2021
1 parent f5ad758 commit f3cb6d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion models/class.reactionmodel.php
Original file line number Diff line number Diff line change
@@ -325,7 +325,9 @@ public function getBest($method, $limit, $offset, $actionID = false, $userID = f
if ($method === self::ITEMS_PROFILE_REACTION || $method === self::ITEMS_BEST_RECENT) {
$this->SQL->orderBy('ParentDateInserted', 'desc');
} else {
$this->SQL->orderBy('ParentScore', 'desc');
$this->SQL
->orderBy('ParentScore', 'desc')
->orderBy('ParentDateInserted', 'desc');
}

$records = $this->SQL

0 comments on commit f3cb6d2

Please sign in to comment.