Sort packages before output
Use logger