[python] add missing sort methods
Merge pull request #2176 from ronie/python-sortmethod

[python] add missing sort methods