sort csv input files before passing them to merger