sort input files by name to avoid indeterminism during test