consider disc number while sorting tracks in media library

This commit is contained in:
Andrzej Rybczak
2008-10-31 20:25:17 +01:00
parent 8bd081e964
commit 11982bc1e4

View File

@@ -243,7 +243,10 @@ bool Keypressed(int in, const int *key)
bool SortSongsByTrack(Song *a, Song *b)
{
return StrToInt(a->GetTrack()) < StrToInt(b->GetTrack());
if (a->GetDisc() == b->GetDisc())
return StrToInt(a->GetTrack()) < StrToInt(b->GetTrack());
else
return StrToInt(a->GetDisc()) < StrToInt(b->GetDisc());
}
void WindowTitle(const string &status)