Use key-based sorting instead of cmp-based for performance.
Also reduces code duplication. Also, use "sorted" rather than in-place sort and lambda rather than local functions to reduce code length. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45721 20353a03-c40f-0410-a6d1-a30d3c3de9de
Showing
Please register or sign in to comment