Commit 6aebf658 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

offices: sort by office name

parent c0253ae4
......@@ -70,7 +70,7 @@ class Offices:
return self.data.items()
def sorted(self):
return {k: sorted(v) for k, v in self.data.items() if k != 'Exterieur' and v}
return {o: sorted(self.data[o]) for o in sorted(self.data) if o != 'Exterieur' and self.data[o]}
def dumps(self):
"""dump a sorted dict of offices with sorted lists of members as a JSON string"""
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment