title: How to use $.unique() function
body: <p>Please, help me to understand, how to use <code>$.unique()</code> function.</p>
  
  <p>From the docs: </p>
  
  <blockquote>
    <p>Sorts an array of DOM elements, in place, with the duplicates removed.</p>
  </blockquote>
  
  <p>I'm trying this code:</p>
  
  <pre><code>&lt;h1 class="foo"&gt;Headline&lt;/h1&gt;
  &lt;h1 class="foo"&gt;Headline&lt;/h1&gt;
  &lt;h1 class="foo"&gt;Headline&lt;/h1&gt;
  
  alert( $.unique($('.foo')).length );
  </code></pre>
  
  <p>It returns 3, but I supposed 1. What am I missing? And it would be great to see some practice example of using this function. Thanks.</p>
  
  <p>P.S.</p>
  
  <p>I've also tried to sort a few numbers, but got a very curious result.
  The following code returns different values in different browsers!</p>
  
  <p><code>$.unique([ 1, 2, 2, 3, 3, 1 ])</code></p>
  
  <ul>
  <li>Safari - 1, 2, 3, 1</li>
  <li>Opera - 2, 1, 3</li>
  <li>FF - 3, 2, 1, 3</li>
  <li>Chrome - 3, 2, 1</li>
  <li>IE - 2, 1, 3</li>
  </ul>