\r
% else:\r
<h2>Map Index</h2>\r
-<table border="1">\r
+<table id="map-index-table" border="1">\r
<tr>\r
- <th>#</th>\r
<th>Name</th>\r
</tr>\r
% for map in maps:\r
<tr>\r
- <td>${map.map_id}</th>\r
<td><a href="${request.route_url("map_info", id=map.map_id)}" title="Go to this map's info page">${map.name}</a></th>\r
</tr>\r
% endfor\r
import logging\r
from pyramid.response import Response\r
+from sqlalchemy import desc\r
from webhelpers.paginate import Page, PageURL\r
from xonstat.models import *\r
from xonstat.util import page_url\r
\r
try:\r
map_q = DBSession.query(Map).\\r
- order_by(Map.name)\r
+ order_by(Map.map_id.desc())\r
\r
maps = Page(map_q, current_page, url=page_url)\r
\r