title: Sorting not working in kotlin by using sortedBy(...)
body: <p>I am  trying to sort this: <code>listOf(&quot;P5&quot;,&quot;P1&quot;,&quot;P2&quot;,&quot;P3&quot;,&quot;P10&quot;)</code> by using  <code>val list = categoryList.sortedBy { it }</code> but what is returning is this: <code>[P1, P10, P2, P3, P5]</code> , according to my requirement it should return <code>[P1, P2, P3, P5, P10]</code> so what i am doing wrong here?</p>