Respect is the disposition to consider others, protecting our personal reputation. The respectful person acts with discretion, offering a good example and avoiding shame.
Dignity is respect for oneself, without fear of external judgment. The person with dignity acts correctly, independently of the opinions of others.
Although both are necessary and beneficial, dignity is more precious than respect, as it inclines us to abstain from wrongdoing, even when anonymous or unobserved.