if (this.nodeArray[index]?.priority > priority) {
this.nodeArray.splice(index, 0, { data, priority })
inserted = true
break
}
if (this.nodeArray[index]?.priority > priority) {
this.nodeArray.splice(index, 0, { data, priority })
inserted = true
break
}