Add weights to box plugins and use them to reorder them in dropdown.

From #4613.