fix: [cwetype] Use new key param for the sorted function (branch 3.26)
fix #74 (closed)
To do so we use the functools "cmp_to_key" to convert from the old cmp to the new key param type.
This bug is code has been refactoring, this is why a 3.26 fix is enough here.
--HG-- branch : 3.26