<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _sort_layers(self):
 """Sort the layers by depth."""

        self._layers = OrderedDict(sorted(self._layers.items(), key=lambda t: t[0]))