File Channel sequential processing based on file names
I have a requirement in a sender file channel.
There are mulitple files with different file names, I want these files to be processed in sequence based on the file name.
The files lets say are A3_1, A2, A1,A3_2.
I want to process A1 then A2 and then A3.
Please suggest methods to implement the same, I think an adapter module should help, please throw some light on the same.