FIX: sorting of input files.