//Compare the NodePriority for sorting public int CompareTo(Node nodeToCompare) { return(NodePriority.CompareTo(nodeToCompare.NodePriority)); }
//Compare the NodePriority for sorting (make new custom comparer) public int CompareTo(Node nodeToCompare) { //Compare the current node priority to the nodeToCompare's node priority return(NodePriority.CompareTo(nodeToCompare.NodePriority)); }