def METHOD_NAME(self):
    selection_model = self._view.selectionModel()
    indexes = selection_model.selectedIndexes()
    row_ids = sorted(index.row() for index in indexes)
    if not row_ids or row_ids[0] == 0:
        return
    for row_id in row_ids:
        row = self._model.takeRow(row_id)
        self._model.insertRow(row_id - 1, row)
        selection_model.select(self._model.indexFromItem(row[0]), QtCore.QItemSelectionModel.Select)
    self._update_cfg()