minor update

This commit is contained in:
Miroslav Stampar 2012-05-01 20:43:16 +00:00
parent 8013a64f8c
commit cc28f6db6b

View File

@ -358,7 +358,8 @@ class Dump:
fields = len(tableValues) - 1
columns = tableValues.keys()
columns.sort(key=lambda x: x.lower() if isinstance(x, basestring) else x)
_ = lambda x: x and "id" in x.lower()
columns = sorted(sorted(columns, key=len), lambda x, y: -1 if _(x) and not _(y) else 1 if not _(x) and _(y) else 0)
for column in columns:
if column != "__infos__":