Add sort script file generator and template.