matching the files based on name ordering

For split libraries...
@antgonza can you review??