reorder script blocks

to be in a consistent order.