Marje3PSUT / psutarchive-api

[Legacy] The strapi api for PSUT Archive.
MIT License
2 stars 0 forks source link

Resource count sort bug #49

Closed HDDTHR closed 11 months ago

HDDTHR commented 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.