Reordering attributes in 'element'.