Sorting of chain filenames before running reports