changeset 732:bdf64c70a70c

Order entries in compos by show_id.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 18 Nov 2014 23:50:40 +0200
parents 4ac3d5f07178
children a088d62531dc
files pages/vote.inc.php
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pages/vote.inc.php	Tue Nov 18 23:48:41 2014 +0200
+++ b/pages/vote.inc.php	Tue Nov 18 23:50:40 2014 +0200
@@ -124,7 +124,7 @@
 
   foreach (stExecSQL("SELECT * FROM compos WHERE visible<>0 AND voting<>0") as $compo)
   {
-    $esql = stPrepareSQL("FROM entries WHERE (flags & %d)=0 AND compo_id=%d", EFLAG_DISQUALIFIED, $compo["id"]);
+    $esql = stPrepareSQL("FROM entries WHERE (flags & %d)=0 AND compo_id=%d ORDER BY show_id ASC", EFLAG_DISQUALIFIED, $compo["id"]);
     $nentries = stFetchSQLColumn("SELECT COUNT(*) ".$esql);
     if ($nentries > 0)
     {