Group output files by year