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.
Adds in help definition for summarize function.