[FIX] Sort by donation amount not username

This commit is contained in:
Sebastian Grewe 2013-10-29 18:13:00 +01:00
parent 4793d38764
commit 8752b718e3

View File

@ -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);