Hashset ordering issue : <p>Recently I came across this</p>

<pre><code>String s = "9495963";
Set&lt;Character&gt; set = new HashSet&lt;Character&gt;();
for(char e : s.toCharArray()){
  set.add(e);
}
System.out.println(set);//[3, 4, 5, 6, 9]
</code></pre>

<p>The output i got was [3, 4, 5, 6, 9], so, if HashSet doesn't preserve any order then how come these numbers were arranged in the ascending order?</p>
