This subject was last covered in March 2014. I have now updated the Python code to work with xlwings, and the new version (including open source VBA and Python code) can be downloaded from:
The previous version, linking to Python through Pyxll is still available from:
The screenshot below shows examples of the VBA and Python dynamic sort functions. See the previous post for more details.