Browse code

#15 Challenges order by newest first

Jimako authored on 2023/09/06 09:27:14
Showing 1 changed files
... ...
@@ -63,7 +63,7 @@ else include_once(_BASEDIR."modules/challenges/languages/en.php");
63 63
 
64 64
 
65 65
 	$count = dbquery("SELECT count(chalid) FROM ".TABLEPREFIX."fanfiction_challenges as chal $chalquery");
66
-	$query = "SELECT chal.* FROM ".TABLEPREFIX."fanfiction_challenges as chal $chalquery ORDER BY title LIMIT $offset, $itemsperpage";
66
+	$query = "SELECT chal.* FROM ".TABLEPREFIX."fanfiction_challenges as chal $chalquery ORDER BY chalid DESC LIMIT $offset, $itemsperpage";
67 67
 
68 68
 	list($numrows) = dbrow($count);
69 69
 	if($numrows > 0) {