Enforce layer order whenever changes are made.