I might be misunderstanding what filters we're talking about, but at least the ColumnsUI filters have a sorting script option.
I've marked some code to show where you find the option in the picture. As you can see, artist just shows %artist%, but checking the option to sort incoming files should sort it as if by $swapprefix()
Note that I don't use these filters myself much, though!