Skip to main content


Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: "Sort by" with negative values (Read 520 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

"Sort by" with negative values

Hello, I'm trying to order by %replaygain_track_gain%.
But positive numbers are sorted before negative values, so in my list, I have:

Found nothing googling. I've tried to sort this same tag with mp3Tag and... it's the same behavior ! So I was wondering if it's intentional ?

PS: I'm on Foobar2000 2.1.3 x64 on Windows 11.

Re: "Sort by" with negative values

Reply #1
Try $if(%replaygain_track_gain%,$add($replace(%replaygain_track_gain%,.,),10000))

Re: "Sort by" with negative values

Reply #2
Ah yeah, I remember doing that in the past. It'm not sure it was for replaygain though, but can't remember what it was.

That will do the trick, thanks. Let's hope I don't forget this time.