1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-18 20:40:43 +01:00

A quick patch to have the library ignore all articles when sorting.

This commit is contained in:
Gavin Howard 2014-08-25 21:22:53 -06:00
parent 13cda62c5c
commit 54742de613

View File

@ -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;
}