src/structureUtil.js
// Push item into the priority queue, and sort it based on the comparator

Push item into the priority queue, and sort it based on the comparator
Push item into the priority queue and sort it based on 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 queue, and sort it based on the comparator
Push item into the priority queue and sort it based on the comparator
// Sort using a comparator
