tableutils.Table: make dictionary tables a little more consistent

This commit is contained in:
Mahmoud Hashemi 2016-02-13 14:14:34 -08:00
parent 613cadd575
commit ae2a90151f
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ class DictInputType(InputType):
return isinstance(obj, Mapping)
def guess_headers(self, obj):
return obj.keys()
return sorted(obj.keys())
def get_entry(self, obj, headers):
return [obj.get(h) for h in headers]