File Component: how to sort files as WindowsExplorer? 1M Thanks.

Using java, I do:

To get a list of file sorted/ordered as Window Explorer:

1. Use listFiles() and store list of files in a listOfFileName
2. Collections.sort(listOfFileName, new WindowsExplorerStringComparator());
3. listOfFileName is sorted/ordered as Window Explorer.

--
View this message in context: 
http://camel.465427.n5.nabble.com/File-Component-how-to-sort-files-as-WindowsExplorer-tp4994675p4994675.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to