mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
sort keys in factoid search output by alphabetically by key name.
This commit is contained in:
parent
d2ac0e742a
commit
7351ec1702
@ -464,6 +464,7 @@ class Factoids(callbacks.Plugin, plugins.ChannelDBHandler):
|
|||||||
cursor = db.cursor()
|
cursor = db.cursor()
|
||||||
sql = """SELECT keys.key FROM %s WHERE %s""" % \
|
sql = """SELECT keys.key FROM %s WHERE %s""" % \
|
||||||
(', '.join(tables), ' AND '.join(criteria))
|
(', '.join(tables), ' AND '.join(criteria))
|
||||||
|
sql = sql + " ORDER BY keys.key"
|
||||||
sql = sql.replace('TARGET', target)
|
sql = sql.replace('TARGET', target)
|
||||||
cursor.execute(sql, formats)
|
cursor.execute(sql, formats)
|
||||||
if cursor.rowcount == 0:
|
if cursor.rowcount == 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user