The order in which shapes overlap other shapes on the page and the order in which shapes are selected.