fix SongUtil::SortSongPointerArrayBySectionName ordering

This commit is contained in:
Glenn Maynard
2004-09-09 01:56:05 +00:00
parent 6e3fd323df
commit b2ea5452e8
+2 -2
View File
@@ -34,7 +34,7 @@ CString SongUtil::MakeSortString( CString s )
{
s.MakeUpper();
// Make sure that non-alphanumeric characters are placed at the very end
// Make sure that non-alphanumeric strings are placed at the very end.
if( s.size() > 0 )
{
if( s[0] == '.' ) // ".59"
@@ -336,7 +336,7 @@ void SongUtil::SortSongPointerArrayBySectionName( vector<Song*> &arraySongPointe
/* Make sure NUM comes first and OTHER comes last. */
if( val == "NUM" ) val = "0";
else if( val == "OTHER" ) val = "2";
else val = "1" + val;
else val = "1" + MakeSortString(val);
song_sort_val[arraySongPointers[i]] = val;
}