def insert_into_sentence(sentence, insertions):
  """Sorts and performs insertions from right.

  Args:
    sentence: Sentence to perform insertions into
    insertions: List of insertions, format: (position, text_insert)

  Returns:
    sentence: Inplace inserted sentence
  """

  insertions = sorted(insertions, key=lambda x: x[0], reverse=True)
  for position, text in insertions:
    sentence = sentence[:position] + text + sentence[position:]
  return sentence