Quote Originally Posted by ChrisW67 View Post
If you use QStandardItemModel::setSortRole() to set the role to Qt::EditRole and return a QVariant:: Double in that role, and the QVariant::String form in the Qt:: DisplayRole, does that achieve your sorting requirement?
I do not edit the contents of the table, I only click on the column header of the tableview, such that the sorting of Ascending and Descending happens.