SetSortOrder
Specifies the order in which image files are imported.
Syntax
bool SetSortOrder (strParam)
Parameters
Two comma-separated String values:Parameter
1. Designation of the images' sorting field can be specified
with text or numerically:
- 1 or Name : The input file name.
- 2 or Type : The file type.
- 3 or DateCreated : The File creation date.
- 4 or DateLastAccessed : The last file access date.
- 5 or DateLastModified : The last file modification date.
- 6 or Size : The file size.
Parameter 2. Optional: ASC or 1 (Ascending), DESC or 2 (Descending). If you do not include this parameter, the action defaults to ASC (1).
Returns
False if the parameters are not valid. Otherwise, True.Level
Any level but usually the batch level.Details
Sets the order in which Image files will be imported to the batch. The input files can be sorted by their file name, file type, date created, date accessed, date modified or file size. Using the optional second parameter, you can control if the values are sorted in ascending or descending order.For this action to take effect, it must be called before the Scan action.
- Example
SetSortOrder("Name,ASC") Scan()