code: def setLayout(self, value):
          
          new_layout = sorted(value, key=lambda k: k['position'])
          self.getField('Layout').set(self, new_layout)
docs: Sets the worksheet layout, keeping it sorted by position
          :param value: the layout to set