Community Commons MergeMultiplePdfs sequence of pdf files merged?

I want to merge multiple pdf files with the above mentioned java action.  It takes the list of system.filedocuments that you want to merge as input parameter and spits out the merged pdf document (also of type system.filedocument). My question: what will be the order of the pdf documents in the merge? Same order as they appear in the input list, or random? This is crucial for my project. Thanks!
1 answers

Yes sure regarding the list you pass to the java action I am using that and I am sorting the list and I passed the sorted one ,The generated pdf have the same sequence for the sorted list .