From 9db1598a0e0e65a6749d49c9fbf230b31e19d1b9 Mon Sep 17 00:00:00 2001 From: Daniel Folkinshteyn Date: Fri, 5 Mar 2010 14:51:25 -0500 Subject: [PATCH] sort keys in factoid search output by alphabetically by key name. --- plugins/Factoids/plugin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/Factoids/plugin.py b/plugins/Factoids/plugin.py index 2de1da61d..910d809e6 100644 --- a/plugins/Factoids/plugin.py +++ b/plugins/Factoids/plugin.py @@ -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: