Initialize widget toolbar using sorted names

If looping object by keys the order may change which causes the widgets
to be in different order after a page refresh. Use sorted keys when
going through the widgets so they stay in same order.