reformat and sort all files