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