mirror of
https://github.com/djohnlewis/stackdump
synced 2025-04-08 02:33:27 +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.
|
handler.
|
||||||
'''
|
'''
|
||||||
try:
|
try:
|
||||||
sites = list(Site.select())
|
sites = list(Site.select().orderBy('name'))
|
||||||
if len(sites) == 0:
|
if len(sites) == 0:
|
||||||
raise NoSitesImportedError()
|
raise NoSitesImportedError()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user