Sort alias addresses in Account.getAliases() / vmm userinfo.
authorPascal Volk <neverseen@users.sourceforge.net>
Mon, 07 Sep 2009 04:40:33 +0000
changeset 145 ead2a7e9f8be
parent 144 4c6aa6c29dd7
child 146 a08d78344706
Sort alias addresses in Account.getAliases() / vmm userinfo.
VirtualMailManager/Account.py
--- a/VirtualMailManager/Account.py	Sat Sep 05 18:46:33 2009 +0000
+++ b/VirtualMailManager/Account.py	Mon Sep 07 04:40:33 2009 +0000
@@ -205,7 +205,7 @@
         dbc = self._dbh.cursor()
         dbc.execute("SELECT address ||'@'|| domainname FROM alias, domain_name\
  WHERE destination = %s AND domain_name.gid = alias.gid\
- AND domain_name.is_primary", str(self._addr))
+ AND domain_name.is_primary ORDER BY address", str(self._addr))
         addresses = dbc.fetchall()
         dbc.close()
         aliases = []