src/structureUtil.js
// Push item into the priority, and then sort using the comparator

Push item into the priority, and then sort using the comparator
Push item into the priority and then sort using the comparator
push(item, priority) {
        var newItem = new PriorityItem(item, priority);
        this.list.push(newItem);
        this.list.sort(this.comparator);
    }
push ( item , priority ) { var newItem = new PriorityItem ( item , priority ) ; this . list . push ( newItem ) ; this . list . sort ( this . comparator ) ; }
Push item into the priority, and then sort using the comparator
Push item into the priority and then sort using the comparator
// Sort using a comparator
