From 696f21ec5f4d46e5a5927ca2c474b442a391553d Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sat, 9 Jan 2021 20:28:48 +0000 Subject: library: fixed sorting git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9626 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/library/librarymodel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/General/library/librarymodel.cpp b/src/plugins/General/library/librarymodel.cpp index d347f0ffe..4e79dd6cd 100644 --- a/src/plugins/General/library/librarymodel.cpp +++ b/src/plugins/General/library/librarymodel.cpp @@ -275,11 +275,11 @@ void LibraryModel::refresh() QSqlQuery query(db); if(m_filter.isEmpty()) { - query.prepare("SELECT DISTINCT Artist from track_library"); + query.prepare("SELECT DISTINCT Artist from track_library ORDER BY Artist"); } else { - query.prepare("SELECT DISTINCT Artist from track_library WHERE SearchString LIKE :filter"); + query.prepare("SELECT DISTINCT Artist from track_library WHERE SearchString LIKE :filter ORDER BY Artist"); query.bindValue(":filter", QString("%%1%").arg(m_filter.toLower())); } -- cgit v1.2.3-13-gbd6f