Help - Search - Members - Calendar
Full Version: Looking for a reverse sorting
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
fabiospark
Musimusic, is there a way to create a custom sort in reverse order with your Custom sort plugin? Of course I'm talking about FB 0.8.3

I'm looking for a reverse %rating% sort order in one single command because I need to assign it to a short-cut.

Could you explain a bit the syntax too, please?

Thank you.
dano
dry.gif
fabiospark
No, my need is not to sort about the value of %rating% but I need the tracks with no %rating% first then the rated ones. I'm using a remote control and want to group at the beginning the not rated ones with just one key stroke.

If I use the menù command "Playlist\Sort\Rating" and then "Playlist\Sort\Reverse" I get what I want. Thats why I asked about reverse sorting.

And it would be useful being able to reverse the alphabetical order too.

hunted
$if2(%rating%,6)
would put files with no rating, then rating 5, then rating 4, etc
note: change the 6 to one higher than highest possible rating
or to avoid that all to gether, you could do this (technically slightly slower, but you wouldn't notice): $if(%rating%,$num(%rating%,3),1000) pads rating to 3 numbers, and files with no ratings are 1000, making them the highest on the list

$if(%rating%,$sub(100,%rating%),101)
would put files with no rating tag first, then 0, then 1, then 2, etc
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.