[SD-783] added functionality so that oldest files is processed first.
removed unnecessary if statements.
Merge pull request #413 from mdhaman/master

[SD-783] added functionality so that oldest files is processed first.