I am stuck using the older version (2.2.1) of Jython on the machines I am working on, but I need the sorted method. I already import generators from future, but
from __future__ import sorted
returns SyntaxError: future feature sorted is not defined. Is there a module I can import that has it?
If you’re stuck with an old version of jython, maybe you should use
.sort()instead?You could even define your own sorted to replace the missing one: