title: SSIS package that loops through folder begining with oldest file
body: <p>I saw similar questions but nothing addressing my specific need. I have an SSIS package that has a For Each loop with file enumerator and a pattern match that matches a file with date time like so:</p>
  
  <p>bookreview_daily_*.txt </p>
  
  <p>That matches a file that is for example like so: </p>
  
  <p>bookreview_daily_2016_06_30.txt. Currently I have to process each file individually begining with the oldest date. I'd like to be able to loop through the folder and process each file, begining with oldest file. If I have following files:</p>
  
  <p>bookreview_daily_2016_06_30.txt</p>
  
  <p>bookreview_daily_2016_07_01.txt</p>
  
  <p>bookreview_daily_2016_07_02.txt</p>
  
  <p>The file named bookreview_daily_2016_06_30.txt should be processed first, followed by file bookreview_daily_2016_07_01.txt and then bookreview_daily_2016_07_02.txt as the last file to be processed. Is there a clean, efficient way of accomplishing this?</p>
  
  <ul>
  <li>Matt</li>
  </ul>