fix an issue on file license mapping

fix an issue on file license mapping and sort file output in tag by file
name