Merge pull request #793 from TheSerapher/issue-785

[FIX] Sort by donation amount not username
This commit is contained in:
Sebastian Grewe 2013-10-29 10:28:37 -07:00
commit 8becd60a6d

View File

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