On the alignment dynamics of a passive scalar gradient in a two-dimensional flow