Commit b49998ee authored by Jérome Perrin's avatar Jérome Perrin

sort item references

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41400 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent be5011c0
......@@ -51,6 +51,11 @@
<item>
<key> <string>_body</string> </key>
<value> <string>from DateTime import DateTime\n
def sorted(seq):\n
seq = seq[:]\n
seq.sort()\n
return seq\n
\n
portal = context.getPortalObject()\n
request = portal.REQUEST\n
\n
......@@ -79,7 +84,7 @@ for tracking_brain in portal.portal_simulation.getCurrentTrackingList(\n
item.getQuantity(at_date=at_date) )\n
result_list.append(item_dict)\n
\n
return result_list\n
return sorted(result_list)\n
</string> </value>
</item>
<item>
......@@ -119,6 +124,7 @@ return result_list\n
<string>at_date</string>
<string>kw</string>
<string>DateTime</string>
<string>sorted</string>
<string>_getattr_</string>
<string>context</string>
<string>portal</string>
......
1090
\ No newline at end of file
1091
\ No newline at end of file
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