1
0
mirror of https://github.com/djohnlewis/stackdump synced 2024-12-04 23:17:37 +00:00

Ordered the list of sites by name.

This commit is contained in:
Samuel Lai 2012-08-07 22:27:24 +10:00
parent 7d6bace28a
commit 9c2e530eff

View File

@ -404,7 +404,7 @@ def get_sites():
handler.
'''
try:
sites = list(Site.select())
sites = list(Site.select().orderBy('name'))
if len(sites) == 0:
raise NoSitesImportedError()