def METHOD_NAME(self):
    item = self.findSelectedItem()
    if item:
        for row in range(item.childCount() - 2, -1, -1):
            if item.child(row).isSelected():
                i = item.takeChild(row)
                item.insertChild(row + 1, i)
                i.setSelected(True)