mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-13 23:37:47 +00:00
Due to primary_taxon and supplier having moved to the variant, filtering by_producer and by_category with a custom order involves some complicated sql queries. So we moved the sorting logic from ProductsRenderer to OrderCycles::DistributedProductsService so we can keep the complicated SQL logic contained in one place