From 4c71598eab13f87a66ce64790e563d2cbf28de52 Mon Sep 17 00:00:00 2001 From: dave Date: Wed, 12 Dec 2007 20:37:05 +0000 Subject: [PATCH] - Sort schools by city for the students. When your schools list is 2000+ schools, with 8 "MacKenzie King Elementary School"s it makes the correct school much easier to find. --- register_participants_students.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/register_participants_students.php b/register_participants_students.php index 867c9c5..ca1cf96 100644 --- a/register_participants_students.php +++ b/register_participants_students.php @@ -400,13 +400,13 @@ if($config['participant_student_personal']=="yes") echo " ".i18n("School").""; if( $config['participant_registration_type']=="open" || $config['participant_registration_type']=="singlepassword" || $config['participant_registration_type']=="openorinvite" || ($studentinfo && !$studentinfo->schools_id) ) { - $schoolq=mysql_query("SELECT id,school FROM schools WHERE year='".$config['FAIRYEAR']."' ORDER by school"); + $schoolq=mysql_query("SELECT id,school,city FROM schools WHERE year='".$config['FAIRYEAR']."' ORDER by city,school"); echo "".REQUIREDFIELD;