title: Is it possible to make a priority queue with more than one functor?
body: <p>If I have a struct and PQ is there a way for me to sort the heap by more than one variable. So first age, then if those are equal it does height.</p>
  <pre><code>Struct Person{
       int age;
       int height;
       int weight;
  };
  
  priority_queue&lt;Person, vector&lt;Person&gt;, age_functor&gt;
  
  Struct age_functor{
       bool operator() (Person const&amp; one, Person const&amp; two){
            return one.age &lt; two.age;
       }
  }
  </code></pre>
  <p>The code will sort the queue by age but I'm wondering if I can somehow add in a secondary functor.</p>