sort package names
fix bug