Closed HDDTHR closed 11 months ago
Currently, there is no functionality in Strapi to sort a collection by the number of connections it has (sorting courses by the number of resources associated with them).
We'd have to implement a custom controller specifically for that purpose, or somehow create a new sort type with different behavior. This should help https://forum.strapi.io/t/relation-field-count-ordering-by-relation-count/13271/8.
Currently, there is no functionality in Strapi to sort a collection by the number of connections it has (sorting courses by the number of resources associated with them).
We'd have to implement a custom controller specifically for that purpose, or somehow create a new sort type with different behavior. This should help https://forum.strapi.io/t/relation-field-count-ordering-by-relation-count/13271/8.