diff --git a/pcsx2-qt/Debugger/CpuWidget.cpp b/pcsx2-qt/Debugger/CpuWidget.cpp index 693d546275..d9d569c12a 100644 --- a/pcsx2-qt/Debugger/CpuWidget.cpp +++ b/pcsx2-qt/Debugger/CpuWidget.cpp @@ -72,6 +72,7 @@ CpuWidget::CpuWidget(QWidget* parent, DebugInterface& cpu) connect(m_ui.threadList, &QTableView::doubleClicked, this, &CpuWidget::onThreadListDoubleClick); m_threadProxyModel.setSourceModel(&m_threadModel); + m_threadProxyModel.setSortRole(Qt::UserRole); m_ui.threadList->setModel(&m_threadProxyModel); m_ui.threadList->setSortingEnabled(true); m_ui.threadList->sortByColumn(ThreadModel::ThreadColumns::ID, Qt::SortOrder::AscendingOrder);