From 585510ad87e4b274eee07a795aa29027c71524c4 Mon Sep 17 00:00:00 2001 From: james Date: Sat, 25 Oct 2008 04:33:18 +0000 Subject: [PATCH] Sort the sponsorships list --- admin/fundraising.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/fundraising.php b/admin/fundraising.php index 785aa9d..6a1bed1 100644 --- a/admin/fundraising.php +++ b/admin/fundraising.php @@ -71,7 +71,8 @@ require_once("../dialog.inc.php"); FROM sponsorships JOIN sponsors ON sponsorships.sponsors_id=sponsors.id WHERE (sponsorships.fundraising_type='$r->type' $orsql) - AND sponsorships.year='{$config['FAIRYEAR']}'"); + AND sponsorships.year='{$config['FAIRYEAR']}' + ORDER BY status DESC, probability DESC, organization"); while($sr=mysql_fetch_object($sq)) { echo "id\" class=\"fundraising{$sr->status}\">"; echo "id&fundraising_type=$r->type',400,200)\" href=\"#\">";