title: remove duplicates from an array based on object property continued
body: <p>related to : <a href="https://stackoverflow.com/questions/10505760/remove-duplicates-from-an-array-based-on-object-property/40941631#40941631">Remove duplicates from an array based on object property?</a></p>
  
  <p>is there a way to do this exact same thing but consider the order? for example if instead of keeping [2] I wanted to keep [1]</p>
  
  <pre><code>  [0]=&gt;
    object(stdClass)#337 (9) {
      ["term_id"]=&gt;
      string(2) "23"
      ["name"]=&gt;
      string(12) "Assasination"
      ["slug"]=&gt;
      string(12) "assasination"
    }
    [1]=&gt;
    object(stdClass)#44 (9) {
      ["term_id"]=&gt;
      string(2) "14"
      ["name"]=&gt;
      string(16) "Campaign Finance"
      ["slug"]=&gt;
      string(16) "campaign-finance"
    }
    [2]=&gt;
    object(stdClass)#298 (9) {
      ["term_id"]=&gt;
      string(2) "15"
      ["name"]=&gt;
      string(16) "Campaign Finance"
      ["slug"]=&gt;
      string(49) "campaign-finance-good-government-political-reform"
    }
  </code></pre>
  
  <p>I tried posting a comment but because of my reputation it won't let me so I decided to start a new thread</p>