consider "ignore leading 'the' word" function while sorting playlist
This commit is contained in:
@@ -275,6 +275,11 @@ bool Playlist::Sorting(MPD::Song *a, MPD::Song *b)
|
||||
std::string sb = (b->*(*SortDialog)[i].second)();
|
||||
ToLower(sa);
|
||||
ToLower(sb);
|
||||
if (Config.ignore_leading_the)
|
||||
{
|
||||
RemoveTheWord(sa);
|
||||
RemoveTheWord(sb);
|
||||
}
|
||||
if (sa != sb)
|
||||
return sa < sb;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user