For the Sort:
The Song Choice script has an approach that you may be able to use.
This has a Filter Results node; under that are two more nodes: By Artist and By Genre. When you open either of those nodes, there is a list of artists or genres - but at the top of that list is is a button which changes from "Enable" to "Disable" and back again when you click it.
It looks like the perfect approach if you can adapt it.
Another request:
In the Statistics node, when you drill down to a results node you get a list of artists, songs, or whatever, which might look like this:
(343) Therion
What I'd like is to also see a number showing the ranking, so you might have:
(343) Therion (13th)
There's definitely the danger of the display getting a bit cluttered. but it would be nice to be able to see. Whether the Rank was displayed or not isn't something a user would want want to change frequently - either they'd like it or not. So maybe an option you could enable or disable within the script file would be fine for this - if you adopted it, that is
Edited to add URL for Song Choice script.
