sort file listings

@sunglim, sort file listing in order to prevent large file diffs in the generated template files (TBR)