updated compoundNames and move shortest name first