An affine rearrangement inequality is established which strengthens and implies the recently obtained affine Pólya--Szegö symmetrization principle for functions on Rn. Several applications of this new inequality are derived. In particular, a sharp affine logarithmic Sobolev inequality is established which is stronger than its classical Euclidean counterpart.