The categorymembers method currently only has startsort which is passed to API as cmendsortkeyprefix. It's hard to work with (it should be in binary string format) and is deprecated since MW 1.24. See: T74101
Pywikibot should provide a way to use the newer cmstartsortkeyprefix API parameter which is easier to use in many situations.