From 54742de6136892cd035c3bc0793f42bbef18df12 Mon Sep 17 00:00:00 2001 From: Gavin Howard Date: Mon, 25 Aug 2014 21:22:53 -0600 Subject: [PATCH] A quick patch to have the library ignore all articles when sorting. --- src/library/librarymodel.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/library/librarymodel.cpp b/src/library/librarymodel.cpp index ad3c5a6fe..829126203 100644 --- a/src/library/librarymodel.cpp +++ b/src/library/librarymodel.cpp @@ -1074,6 +1074,12 @@ QString LibraryModel::SortTextForArtist(QString artist) { if (artist.startsWith("the ")) { artist = artist.right(artist.length() - 4) + ", the"; } + else if (artist.startsWith("a ")) { + artist = artist.right(artist.length() - 2) + ", a"; + } + else if (artist.startsWith("an ")) { + artist = artist.right(artist.length() - 3) + ", an"; + } return artist; }