add pref PreferredSortUsesGroups

This commit is contained in:
Chris Danford
2005-05-09 17:33:22 +00:00
parent ec07a8efaf
commit 11b9427b9c
5 changed files with 9 additions and 10 deletions
+1 -7
View File
@@ -163,17 +163,11 @@ void SongUtil::SortSongPointerArrayByGenre( vector<Song*> &vpSongsInOut )
stable_sort( vpSongsInOut.begin(), vpSongsInOut.end(), CompareSongPointersByGenre );
}
static int CompareSongPointersByGroup(const Song *pSong1, const Song *pSong2)
int SongUtil::CompareSongPointersByGroup(const Song *pSong1, const Song *pSong2)
{
return pSong1->m_sGroupName < pSong2->m_sGroupName;
}
void SongUtil::SortSongPointerArrayByGroupAndDifficulty( vector<Song*> &vpSongsInOut )
{
SortSongPointerArrayByMeter( vpSongsInOut, DIFFICULTY_EASY );
stable_sort( vpSongsInOut.begin(), vpSongsInOut.end(), CompareSongPointersByGroup );
}
int CompareSongPointersByGroupAndTitle(const Song *pSong1, const Song *pSong2)
{
const CString &sGroup1 = pSong1->m_sGroupName;