Alphabetize streams

This commit is contained in:
dave 2014-08-28 13:31:42 -07:00
parent 19feb1fc81
commit 690d2e923a
1 changed files with 1 additions and 1 deletions

2
app.py
View File

@ -101,7 +101,7 @@ if __name__ == '__main__' or 'uwsgi' in __name__:
@cherrypy.expose
def getStreams(self):
streamList = db.execute('SELECT * FROM "streams"')
streamList = db.execute('SELECT * FROM "streams" ORDER BY "name" ASC;')
for stream in streamList:
stream["time"] = db.execute('SELECT * FROM "times" WHERE streamid=?', [stream["id"]])[0]