Skip to content

Commit

Permalink
make '#' an exception to non alphanumeric chars last in song title sort
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Feb 6, 2019
1 parent ab21261 commit 715e02e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/SongUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,10 @@ SongUtil::MakeSortString(RString s)
if (s.size() > 0) {
if (s[0] == '.') // like the song ".59"
s.erase(s.begin());

if (s[0] == '#')
return s;

if ((s[0] < 'A' || s[0] > 'Z') && (s[0] < '0' || s[0] > '9'))
s = char(126) + s;
}
Expand Down

0 comments on commit 715e02e

Please sign in to comment.