cleanup license and sort them.