@infrab4a/connect-angular 4.3.12-beta.14 → 4.3.12-beta.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1625,17 +1625,22 @@ class CatalogService {
1625
1625
  if (!sort || sort === 'most-relevant')
1626
1626
  return {};
1627
1627
  if (sort === 'best-sellers')
1628
- return { shoppingCount: 'desc_nulls_last' };
1628
+ return {
1629
+ shoppingCount: 'desc',
1630
+ rate: 'desc',
1631
+ stock: 'desc',
1632
+ name: 'asc',
1633
+ };
1629
1634
  if (sort === 'biggest-price')
1630
- return { subscriberPrice: 'desc' };
1635
+ return { subscriberPrice: 'desc', rate: 'desc', shoppingCount: 'desc' };
1631
1636
  if (sort === 'lowest-price')
1632
- return { subscriberPrice: 'asc' };
1637
+ return { subscriberPrice: 'asc', rate: 'desc', shoppingCount: 'desc' };
1633
1638
  if (sort === 'best-rating')
1634
- return { rate: 'desc_nulls_last' };
1639
+ return { rate: 'desc', shoppingCount: 'desc', stock: 'desc', name: 'asc' };
1635
1640
  if (sort === 'news')
1636
1641
  return { createdAt: 'desc' };
1637
1642
  if (sort === 'biggest-discount')
1638
- return { subscriberDiscountPercentage: 'desc' };
1643
+ return { subscriberDiscountPercentage: 'desc', rate: 'desc', shoppingCount: 'desc' };
1639
1644
  };
1640
1645
  this.buildLimitQuery = (options) => {
1641
1646
  const limit = options?.perPage || 20;