Commit 2c039acb authored by Nicolas Dumazet's avatar Nicolas Dumazet

key parameter is more efficient and clear than cmp

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32718 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ddc40b8d
......@@ -479,7 +479,7 @@ class XMLMatrix(Folder):
result = []
for value in cell_range.itervalues():
result_items = value.items()
result_items.sort(lambda x, y: x[1]-y[1])
result_items.sort(key=lamba x:x[1])
result_items = [x[0] for x in result_items]
result += [result_items]
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