fabiospark
Oct 21 2005, 14:59
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.
fabiospark
Oct 21 2005, 16:33
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
Oct 21 2005, 19:28
$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