Hi there, @toff… I made a quick example, and if I understand your post correctly, I believe the following expression should do the trick. Oh, and the sort is in descending order.
By the way, if you haven’t done so already, enable the experimental parentheses feature immediately because it’s pretty darn useful.
Hope this helps.
Best…
Mike