Mercurial > hg > fapweb
diff admajax.php @ 956:1992eb6d759f
Reverse entry sorting order.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 28 Nov 2014 18:38:49 +0200 |
parents | 6234816c1e43 |
children | fb945b968827 |
line wrap: on
line diff
--- a/admajax.php Fri Nov 28 18:25:35 2014 +0200 +++ b/admajax.php Fri Nov 28 18:38:49 2014 +0200 @@ -1602,7 +1602,7 @@ "<div class=\"entries\">\n"; $row = 0; - foreach (stExecSQL("SELECT * FROM entries WHERE compo_id=".$id." ORDER BY id ASC") as $entry) + foreach (stExecSQL("SELECT * FROM entries WHERE compo_id=".$id." ORDER BY id DESC") as $entry) stPrintEntryItemData($entry, $row++, TRUE, "en", $compo, EEMODE_NORMAL); echo "</div>\n";