def METHOD_NAME(self, newTask):
    for i in range(len(self.executionOrder)):
        tmpTask = self.executionOrder[i]
        if (newTask.nextTaskTime < tmpTask.nextTaskTime or
                newTask.nextTaskTime == tmpTask.nextTaskTime and
                newTask.priority > tmpTask.priority):
            self.executionOrder.insert(i, newTask)
            return
    self.executionOrder.append(newTask)