Cpp Array Sort Python Function Arguments