Sort the list of years in the report generator screen

This commit is contained in:
james 2009-03-09 16:50:58 +00:00
parent 6db3c8ef37
commit 3880628596

View File

@ -112,7 +112,7 @@
echo "</select></td></tr>";
}
/* Find all the years */
$q = mysql_query("SELECT DISTINCT year FROM config WHERE year>1000");
$q = mysql_query("SELECT DISTINCT year FROM config WHERE year>1000 ORDER BY year DESC");
echo "<tr><td><b>".i18n('Year')."</b>:</td>";
echo "<td><select name=\"year\" id=\"year\">";
while($i = mysql_fetch_assoc($q)) {