aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/library/librarymodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/General/library/librarymodel.cpp')
-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()));
}