Commit d364bd1b authored by Nicolas Dumazet's avatar Nicolas Dumazet

sorted() looks more appropriate

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32719 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2c039acb
...@@ -478,8 +478,7 @@ class XMLMatrix(Folder): ...@@ -478,8 +478,7 @@ class XMLMatrix(Folder):
result = [] result = []
for value in cell_range.itervalues(): for value in cell_range.itervalues():
result_items = value.items() result_items = sorted(value.iteritems(), key=lambda x:x[1])
result_items.sort(key=lamba x:x[1])
result_items = [x[0] for x in result_items] result_items = [x[0] for x in result_items]
result += [result_items] result += [result_items]
return result return result
......
Markdown is supported
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