added file sorting when many files found