sort keys in factoid search output by alphabetically by key name.

This commit is contained in:
Daniel Folkinshteyn 2010-03-05 14:51:25 -05:00 committed by Valentin Lorentz
parent d2ac0e742a
commit 7351ec1702
1 changed files with 1 additions and 0 deletions

View File

@ -464,6 +464,7 @@ class Factoids(callbacks.Plugin, plugins.ChannelDBHandler):
cursor = db.cursor()
sql = """SELECT keys.key FROM %s WHERE %s""" % \
(', '.join(tables), ' AND '.join(criteria))
sql = sql + " ORDER BY keys.key"
sql = sql.replace('TARGET', target)
cursor.execute(sql, formats)
if cursor.rowcount == 0: