From ae2a90151fe44277721a9a9d5342bd16bc8f2d57 Mon Sep 17 00:00:00 2001 From: Mahmoud Hashemi Date: Sat, 13 Feb 2016 14:14:34 -0800 Subject: [PATCH] tableutils.Table: make dictionary tables a little more consistent --- boltons/tableutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boltons/tableutils.py b/boltons/tableutils.py index b936fd3..2acdd28 100644 --- a/boltons/tableutils.py +++ b/boltons/tableutils.py @@ -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]