@infrab4a/connect-angular 4.8.2-beta.0 → 4.8.2-beta.1

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.
@@ -1788,7 +1788,9 @@ class CatalogService {
1788
1788
  },
1789
1789
  }, options?.mainGender || this.shop === Shops.MENSMARKET ? 'male' : 'female');
1790
1790
  const mostRelevantWithouyStock = totalResult.data.filter((product) => mostRelevants.includes(product.id) && product.stock.quantity <= 0);
1791
- const firstProducts = totalResult.data.filter((product) => mostRelevants.includes(product.id) && product.stock.quantity > 0);
1791
+ const firstProducts = totalResult.data
1792
+ .filter((product) => mostRelevants.includes(product.id) && product.stock.quantity > 0)
1793
+ .sort((a, b) => mostRelevants.indexOf(a.id) - mostRelevants.indexOf(b.id));
1792
1794
  const lastProducts = totalResult.data
1793
1795
  .filter((product) => !mostRelevants.includes(product.id))
1794
1796
  .concat(mostRelevantWithouyStock);