[FIX] Sort by donation amount not username
This commit is contained in:
parent
4793d38764
commit
8752b718e3
@ -216,6 +216,7 @@ class Transaction extends Base {
|
||||
t.type = 'Donation_PPS'
|
||||
)
|
||||
GROUP BY a.username
|
||||
ORDER BY donation DESC
|
||||
");
|
||||
if ($this->checkStmt($stmt) && $stmt->execute() && $result = $stmt->get_result())
|
||||
return $result->fetch_all(MYSQLI_ASSOC);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user