I have a filter (implements FileListFilter) that implements a custom sorting algorithm for a given list of files.
This filter is defined as follows:
The filter then sorts the list of files. The filter implementation returns a list of sorted files. However, the sorted list of files is ignored by the FileReadingMessageSource
Looking at the implementation (also have a test case to prove it) of FileReadingMessageSource, it appears to convert the 'sorted list' into a 'set' - thereby ignoring
the sort in the FileListFilter
Our use case calls for processing the incoming files in a specific order.