I stumbled across these lines / identity I don’t understand. To derive an alternative form of the Euler equation including the vorticity vector $\vec \omega = \vec \nabla \times \vec{\mathsf v}$, the author of the following lines states:
To my mind the Grassmann identity $$\vec a \times \left(\vec b \times \vec c\right) = \vec b \left( \vec a \cdot \vec c \right) - \vec c \left( \vec a \cdot \vec b \right) $$ was performed “in reverse order”. However, to me it is unclear why the author’s first term on the RHS is $$\vec \nabla \left( \frac{\vec{\mathsf v} ^2}{ 2}\right)$$ In my opinion $$\vec \nabla \left( \vec{\mathsf v} ^2\right)$$ would be the correct term.
I am specifying my question: If I simply set $\vec a = \vec c = \vec{\mathsf v}$ and $\vec b = \vec \nabla $ and naively apply the identity it will yield: \begin{align} \vec{\mathsf v} \times \left(\vec \nabla \times \vec{\mathsf v} \right) &= \vec \nabla \left( \vec{\mathsf{v}} \cdot \vec{\mathsf v}\right)-\vec{\mathsf{v}}\left(\vec{\mathsf v}\cdot \vec{\nabla}\right) \\ &= \vec{\nabla}\left(\vec{\mathsf{v}}^2\right) - \left(\vec{\mathsf v}\cdot\vec{\nabla}\right) \vec{\mathsf v} \end{align}
What's the error in the prior proceeding?

$$\let\eps\epsilon (v\times( \nabla\times v))_i= \eps_{ijk}v_j(\eps_{klm} \partial_l v_m) = \eps_{kij}v_j(\eps_{klm} \partial_l v_m)=v_j (\delta_{il}\delta_{jm} - \delta_{im}\delta_{jl})\partial_lv_m=v_j \partial_i v_j -v_j\partial_jv_i$$ So the correct formula is $$ v\times (\nabla \times v) = \sum_{j=1}^3 v_j \nabla v_j - (v\cdot\nabla )v=\nabla |v|^2/2 - (v\cdot \nabla )v$$
Note that this first term in the RHS is different from $\nabla (v_j v_j)$ by exactly a factor of 2. I believe the error was rearranging a differential operator like a vector.