Sort titles that start with a decimal point in NUM, too.
This commit is contained in:
@@ -1149,11 +1149,16 @@ CString MusicWheel::GetSectionNameFromSongAndSort( const Song* pSong, SongSortOr
|
|||||||
sTemp.MakeUpper();
|
sTemp.MakeUpper();
|
||||||
if(sTemp.empty()) return "";
|
if(sTemp.empty()) return "";
|
||||||
|
|
||||||
sTemp = sTemp[0];
|
/* If it starts with a number, or a decimal point followed by a number,
|
||||||
if( IsAnInt(sTemp) )
|
* sort it in NUM. */
|
||||||
sTemp = "NUM";
|
if( sTemp[0] >= '0' && sTemp[0] <= '9' )
|
||||||
|
return "NUM";
|
||||||
|
else if( sTemp.size() > 1 && sTemp[0] == '.' && sTemp[1] >= '0' && sTemp[1] <= '9' )
|
||||||
|
return "NUM";
|
||||||
else if(toupper(sTemp[0]) < 'A' || toupper(sTemp[0]) > 'Z')
|
else if(toupper(sTemp[0]) < 'A' || toupper(sTemp[0]) > 'Z')
|
||||||
sTemp = "OTHER";
|
return "OTHER";
|
||||||
|
|
||||||
|
sTemp = sTemp[0];
|
||||||
return sTemp;
|
return sTemp;
|
||||||
case SORT_BPM:
|
case SORT_BPM:
|
||||||
case SORT_MOST_PLAYED:
|
case SORT_MOST_PLAYED:
|
||||||
|
|||||||
Reference in New Issue
Block a user