sorting input file list.