title: php array_unique sorting behavior
body: <p>I am checking the array_unique function. The manual says that it will also sort the values. But I cannot see that it is sorting the values. Please see my sample code.</p>
  
  <pre><code>$input = array("a" =&gt; "green", 3=&gt;"red", "b" =&gt; "green", 1=&gt;"blue", "red");
  print_r($input);
  $result = array_unique($input,SORT_STRING);
  print_r($result);
  
  The output is
  
  Array
  (
      [a] =&gt; green
      [3] =&gt; red
      [b] =&gt; green
      [1] =&gt; blue
      [4] =&gt; red
  )
  Array
  (
      [a] =&gt; green
      [3] =&gt; red
      [1] =&gt; blue
  )
  </code></pre>
  
  <p>Here the array $result is not sorted. Any help is appreciated.</p>
  
  <p>Thank you
  Pramod</p>