title: Priority Queue of Nodes
body: <p>I've created a priority queue of Nodes, I've 'pushed' the node into the queue, with the assumption that it will sort the nodes in the order of the integer values. I guess I was wrong. The node has the properties, int freq, and char c. I want it sorted in order of ints, form the smallest to largest.</p>
  
  <pre><code>priority_queue&lt;Node*&gt; Q;
  for(i =0; i&lt; 95; i++){
      Q.push(node_array[i]);
  }
  
  for(i =0; i&lt; 95; i++){
      cout&lt;&lt; Q.top() &lt;&lt; endl;
      Q.pop();
  }
  </code></pre>
  
  <p>How can I make it sort in order of the 'freq'?</p>