aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2021-01-09 20:28:48 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2021-01-09 20:28:48 +0000
commit696f21ec5f4d46e5a5927ca2c474b442a391553d (patch)
tree52231e8d3ff7a0a8f497b7c48c9d4930af4349e9 /src/plugins/General
parent0ed73ca9c8985394c7f8ff8014b11592a84198a0 (diff)
downloadqmmp-696f21ec5f4d46e5a5927ca2c474b442a391553d.tar.gz
qmmp-696f21ec5f4d46e5a5927ca2c474b442a391553d.tar.bz2
qmmp-696f21ec5f4d46e5a5927ca2c474b442a391553d.zip
library: fixed sorting
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9626 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General')
-rw-r--r--src/plugins/General/library/librarymodel.cpp4
1 files 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()));
}