in preferred, sort by group -> meter -> num steps

This commit is contained in:
Chris Danford
2005-01-13 09:57:26 +00:00
parent 4799c3414b
commit 7038f473b8
2 changed files with 1 additions and 10 deletions
+1 -9
View File
@@ -97,14 +97,6 @@ static int GetSongSortDifficulty(const Song *pSong)
return 1;
}
void SongUtil::SortSongPointerArrayByDifficulty( vector<Song*> &arraySongPointers )
{
for( unsigned i = 0; i < arraySongPointers.size(); ++i )
song_sort_val[arraySongPointers[i]] =
ssprintf("%9i", GetSongSortDifficulty(arraySongPointers[i]));
stable_sort( arraySongPointers.begin(), arraySongPointers.end(), CompareSongPointersBySortValueAscending );
}
bool CompareSongPointersByBPM(const Song *pSong1, const Song *pSong2)
{
DisplayBpms bpms1, bpms2;
@@ -189,7 +181,7 @@ static int CompareSongPointersByGroup(const Song *pSong1, const Song *pSong2)
void SongUtil::SortSongPointerArrayByGroupAndDifficulty( vector<Song*> &arraySongPointers )
{
SortSongPointerArrayByDifficulty( arraySongPointers );
SortSongPointerArrayByMeter( arraySongPointers, DIFFICULTY_EASY );
stable_sort( arraySongPointers.begin(), arraySongPointers.end(), CompareSongPointersByGroup );
}
-1
View File
@@ -12,7 +12,6 @@ struct XNode;
namespace SongUtil
{
CString MakeSortString( CString s );
void SortSongPointerArrayByDifficulty( vector<Song*> &arraySongPointers );
void SortSongPointerArrayByTitle( vector<Song*> &arraySongPointers );
void SortSongPointerArrayByBPM( vector<Song*> &arraySongPointers );
void SortSongPointerArrayByGrade( vector<Song*> &arraySongPointers );