# Gimp.Image.reorder_item

    @accepts(Gimp.Image, Gimp.Item, Gimp.Item, int)
    @returns(bool)
    def reorder_item(self, item, parent, position):
        # Python wrapper for gimp_image_reorder_item()

Reorder the specified item within its item tree

Reorders or moves item within an item tree. Requires parent is None or a GroupLayer, else returns error. When parent is not None and item is in parent, reorders item within parent group. When parent is not None and item is not in parent, moves item into parent group. When parent is None, moves item from current parent to top level.

Requires item is in same tree as not None parent, else returns error. Layers, Channels, and Paths are in separate trees.

Requires item is not ancestor of parent, else returns error, to preclude cycles.

Since 2.8

self

  The image.

item

  The item to reorder.

parent

  The new parent item.

position

  The new position of the item.

Returns