The rewarding of virtue, and the punishment of vice, especially in an ironic manner.
An act of retaliation.