consider disc number while sorting tracks in media library
This commit is contained in:
@@ -243,7 +243,10 @@ bool Keypressed(int in, const int *key)
|
|||||||
|
|
||||||
bool SortSongsByTrack(Song *a, Song *b)
|
bool SortSongsByTrack(Song *a, Song *b)
|
||||||
{
|
{
|
||||||
|
if (a->GetDisc() == b->GetDisc())
|
||||||
return StrToInt(a->GetTrack()) < StrToInt(b->GetTrack());
|
return StrToInt(a->GetTrack()) < StrToInt(b->GetTrack());
|
||||||
|
else
|
||||||
|
return StrToInt(a->GetDisc()) < StrToInt(b->GetDisc());
|
||||||
}
|
}
|
||||||
|
|
||||||
void WindowTitle(const string &status)
|
void WindowTitle(const string &status)
|
||||||
|
|||||||
Reference in New Issue
Block a user