API Method: smugmug.albums.reSort
This method will re-sort all the photos inside of the album specified by AlbumID. Note that this is a one-time event, and doesn't apply directly to images added in the future by other means.
Arguments:
- String SessionID
- int AlbumID
- String By
o Current valid values:
+ FileName
+ Caption
+ DateTime - String Direction
o Valid values:
+ ASC
+ DESC
Result:
- boolean Album
Fault Codes:
- 12 - "invalid sort method"
- 13 - "invalid sort direction"
- 5 - "system error"
By=Caption returns Fault Code 12. The other two work.