You could use the List Folder Function to get all file/folder names in alphabetical order from a path to a directory:
Returns two arrays of strings listing the names of all files and folders found in path, filtering both arrays based upon pattern and filtering the filenames array based upon the specified datalog type.
EXAMPLE: You can call it simply with the path and two indicators for files/folder names: