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
parent fcd262cd4b
commit 9db1598a0e

View File

@ -453,6 +453,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: