I want to sort values in specific column by using python code when I click th "Çiz" button right side. However it sorts according to first element if numbers are double or more. I realize that it accepts values as string. I look many questions in websites there is no answer for me. I do not want to write a script, there must be a solution for sorting because it seems so easy.
It is my script from Qt 5.10, here.
Here is my script - I wrote 0 for sorting acccording to first column:
QTableWidget.sortItems(0, QtCore.Qt.AscendingOrder)
But it accepts values as string not number value. Actually there is a script when user click header it sorts values but I do not want to had user clicked the header:
QTableWidget.setSortingEnabled(True)