Given an expression $$\sum_i \vec r_i \times \vec uF_i $$ where $\vec r_i$ are position vectors from the origin, $\vec u$ is a constant unit vector and $F_i$ are constants, it is true that$$\sum_i \vec r_i \times \vec uF_i = (\sum_i \vec r_iF_i) \times \vec u.$$
How to prove that the above equation is true?
Let's keep it simple. You need just the following two properties of the cross product:
$$\vec{a}\times(k\vec{b})=(k\vec{a})\times\vec{b}\tag{1}$$
$$(\vec{a}+\vec{b})\times\vec{c}=\vec{a}\times\vec{c}+\vec{b}\times\vec{c}\tag{2}$$
Both can be easily proved if you use the fact that the cross product of vectors $\vec{a}=a_x\vec{i}+a_y\vec{j}+a_z\vec{k}$ and $\vec{b}=b_x\vec{i}+b_y\vec{j}+b_z\vec{k}$ is:
$$\vec{a}\times\vec{b}=(a_yb_z-a_zb_y)\vec{i}+(a_zb_x-a_xb_z)\vec{j}+(a_xb_y-a_yb_x)\vec{k}$$
All this is explained in excellent detail on Wikipedia.
The proof is now simple:
$$\sum_i \vec r_i \times (F_i\vec u)=$$
$$\sum_i (F_i\vec r_i) \times \vec u=\tag{(1) applied}$$
$$(\sum_i F_i\vec r_i) \times \vec u\tag{(2) applied}$$