There no description for the API method reSort. What does it do?
You can take a look at the Java API docs which go into more details. The method seems to allow you to rearrange the photos currently in the gallery by filename, date etc.
Note that this seems to be for an older version of the SmugMug API. I'm not an API expert and haven't verified that the information in the docs linked to is actually correct.