MessageParser: Order @list output with id, instead of random order.

This commit is contained in:
Valentin Lorentz 2013-02-22 18:30:48 +01:00
parent 4069b2eba1
commit 42f5b02d30

View File

@ -387,7 +387,7 @@ class MessageParser(callbacks.Plugin, plugins.ChannelDBHandler):
"""
db = self.getDb(channel)
cursor = db.cursor()
cursor.execute("SELECT regexp, id FROM triggers")
cursor.execute("SELECT regexp, id FROM triggers ORDER BY id")
results = cursor.fetchall()
if len(results) != 0:
regexps = results