[PySide][Maya 2014] Sorting Headers in a QTabelView?

I’ve been looking into the QSortFilterProxyModel to enable some sorting for my Table, however, I don’t want to sort the values contained within a column, I want to sort the columns themselves by their Header DisplayRole.

Based on the documentation I’ve read so far, the Proxy Model wants to sort the data, how would I go about rearranging the Columns based on Header Name?

i believe you’d have to do it yourself and use .moveSection in the QHeaderView

http://srinikom.github.io/pyside-docs/PySide/QtGui/QHeaderView.html#PySide.QtGui.PySide.QtGui.QHeaderView.moveSection