Add sort record file generator