When changing weight of element in array, it is not enough to just change weight, #sorted must be set to FALSE so elements are resorted.
$variables['form']['element']['#weight'] = -10;
$variables['form']['element']['#sorted'] = FALSE;
Thu, 07/30/2015
When changing weight of element in array, it is not enough to just change weight, #sorted must be set to FALSE so elements are resorted.
$variables['form']['element']['#weight'] = -10;
$variables['form']['element']['#sorted'] = FALSE;