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:
parent
13cda62c5c
commit
54742de613
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user