The ‘cardinality’ aggregation can be used to count the costars and you can order by that value. Be careful if you have many stars though because cardinality aggregations can add up in memory costs when you are computing lots of them for a lot of different parent entities. There are controls that trade space for accuracy.
1 Like