You can override QTableWidgetItem::operator<() in a derived class to make it use the numerical value for comparison.

Cheers,
_