This is where the special `user' and `auto' database entries get set.
"""
auto = []
- for sec in conf.sections():
+ for sec in sorted(conf.sections()):
if sec.startswith('@'):
continue
elif sec.startswith('$'):
if conf.has_option(sec, 'user'):
cdb.add('U%s' % conf.get(sec, 'user'), sec)
url = M.URLEncode(laxp = True, semip = True)
- for key, value in conf.items(sec):
+ for key, value in sorted(conf.items(sec), key = lambda (k, v): k):
if not key.startswith('@'):
url.encode(key, ' '.join(M.split(value)[0]))
cdb.add(label, url.result)