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:
parent
7d6bace28a
commit
9c2e530eff
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user