changeset 988:7d7bd913649c

Order the compos on vote page.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 29 Nov 2014 18:28:50 +0200
parents 06e45615b46b
children 1f1d4b933065 3e9e0aa21a18
files pages/vote.inc.php
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pages/vote.inc.php	Sat Nov 29 18:08:34 2014 +0200
+++ b/pages/vote.inc.php	Sat Nov 29 18:28:50 2014 +0200
@@ -119,7 +119,7 @@
     " ".stGetFormHiddenInput("onerror", "noauthvote")."\n".
     stGetVoteButton();
 
-  foreach (stExecSQL("SELECT * FROM compos WHERE visible<>0 AND voting<>0") as $compo)
+  foreach (stExecSQL("SELECT * FROM compos WHERE visible<>0 AND voting<>0 ORDER BY id") as $compo)
   {
     $esql = stPrepareSQL("FROM entries WHERE (flags & %d)=0 AND compo_id=%d", EFLAG_DISQUALIFIED, $compo["id"]);
     $nentries = stFetchSQLColumn("SELECT COUNT(*) ".$esql);