add sorted to curried namespace

This allows a curried `sorted(key=func, reverse=True)` to be used within functions like `compose` and `pipe`