From 715e02ec709718ea783215109399bad6352312af Mon Sep 17 00:00:00 2001 From: "born a rick, raised a morty, died a jerry" Date: Tue, 5 Feb 2019 21:16:24 -0500 Subject: [PATCH] make '#' an exception to non alphanumeric chars last in song title sort --- src/SongUtil.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/SongUtil.cpp b/src/SongUtil.cpp index 4e35fff3d0..6e692ee84b 100644 --- a/src/SongUtil.cpp +++ b/src/SongUtil.cpp @@ -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; }