Then what you want is not a "sort", since you don't have any rules laid out as to how to sort. You want to gather names in some order.

Maybe you should start a brand new thread, and not mention "sort" but just state you want to retrieve the file names in the order that "application x" retrieves them. If it then turns out that there is a way to "sort" them, then it will reveal itself. But to start the thread saying you want to sort has been misleading.

Regards,

Paul McKenzie