diff --git a/src/library/missing_hidden/hiddentablemodel.cpp b/src/library/missing_hidden/hiddentablemodel.cpp index b6026c1a759d..15548218d22d 100644 --- a/src/library/missing_hidden/hiddentablemodel.cpp +++ b/src/library/missing_hidden/hiddentablemodel.cpp @@ -49,7 +49,7 @@ void HiddenTableModel::setTableModel() { LIBRARYTABLE_ID, std::move(tableColumns), m_pTrackCollectionManager->internalCollection()->getTrackSource()); - setDefaultSort(fieldIndex("artist"), Qt::AscendingOrder); + setDefaultSort(fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_ARTIST), Qt::AscendingOrder); setSearch(""); } diff --git a/src/library/missing_hidden/missingtablemodel.cpp b/src/library/missing_hidden/missingtablemodel.cpp index 400f3fc4d274..2b78ccf12c3d 100644 --- a/src/library/missing_hidden/missingtablemodel.cpp +++ b/src/library/missing_hidden/missingtablemodel.cpp @@ -51,7 +51,7 @@ void MissingTableModel::setTableModel(int id) { LIBRARYTABLE_ID, std::move(tableColumns), m_pTrackCollectionManager->internalCollection()->getTrackSource()); - setDefaultSort(fieldIndex("artist"), Qt::AscendingOrder); + setDefaultSort(fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_ARTIST), Qt::AscendingOrder); setSearch(""); } diff --git a/src/library/trackset/crate/cratetablemodel.cpp b/src/library/trackset/crate/cratetablemodel.cpp index 076c54488162..e429868d7cac 100644 --- a/src/library/trackset/crate/cratetablemodel.cpp +++ b/src/library/trackset/crate/cratetablemodel.cpp @@ -78,7 +78,7 @@ void CrateTableModel::selectCrate(CrateId crateId) { // Restore search text setSearch(m_searchTexts.value(m_selectedCrate)); - setDefaultSort(fieldIndex("artist"), Qt::AscendingOrder); + setDefaultSort(fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_ARTIST), Qt::AscendingOrder); } bool CrateTableModel::addTrack(const QModelIndex& index, const QString& location) {