Legend is now sorted by tile vs. shape and by z-index. It should match the ordering of the layers control.
Legend is now sorted by tile vs. shape and by z-index. It should match
the ordering of the layers control.

Previously, adding and removing things from the legend would change the order.

cse-bristol/energy-efficiency-planner,cse-bristol/energy-efficiency-planner,cse-bristol/energy-efficiency-planner