title: What kind of sorting does Kotlin use by default?
body: <p>Which sorting is using for <i>.sort(), .sortWith()</i> etc methods?</p>
  
  <pre><code>val array = arrayOf(3,2,1)
  </code></pre>
  
  <p>Are there some differences in algorithms for arrays of different types and sizes?</p>