title: Sorting QTableWidget by column
body: <p>I have a QTableWidget and I want to sort the components of this table according to the values of the zero column, I used this code :</p>
  
  <pre><code>ui-&gt;tableParticle-&gt;sortByColumn(0,Qt::AscendingOrder);
  </code></pre>
  
  <p>but it gives no good results, the image below shows you the problem I sought solution but found nothing, sorry I can't put all the code because it's very long.
  <a href="https://i.stack.imgur.com/oeF7x.png" rel="nofollow noreferrer">Image</a></p>