Merge pull request #793 from TheSerapher/issue-785
[FIX] Sort by donation amount not username
This commit is contained in:
commit
8becd60a6d
@ -216,6 +216,7 @@ class Transaction extends Base {
|
|||||||
t.type = 'Donation_PPS'
|
t.type = 'Donation_PPS'
|
||||||
)
|
)
|
||||||
GROUP BY a.username
|
GROUP BY a.username
|
||||||
|
ORDER BY donation DESC
|
||||||
");
|
");
|
||||||
if ($this->checkStmt($stmt) && $stmt->execute() && $result = $stmt->get_result())
|
if ($this->checkStmt($stmt) && $stmt->execute() && $result = $stmt->get_result())
|
||||||
return $result->fetch_all(MYSQLI_ASSOC);
|
return $result->fetch_all(MYSQLI_ASSOC);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user