Sort objects on the count of associated objects

3
Does someone know an elegant way to sort objects in a microflow by the count of associated objects. To make this question more clear: Object A has a reference to object B. In a microflow I need to know which of objects B has the most associated object A's.
asked
1 answers
1

An after commit which updates the count? This count than can be used to sort on.

answered