Sort out the (re)rendering order of saved definitions.
Sort out the (re)rendering order of saved definitions.

The behaviour of gridster means we need to make sure we only add in the
gridster widgets in top-to-bottom order, otherwise they may overlap or
end up in the wrong place.

ciaranj/chartled,ciaranj/chartled