Adjust sorting of search result within concept 'events'

This commit is contained in:
Björn Fromme
2023-01-26 11:25:14 +01:00
parent 7f1a7e0eea
commit dc9b598941
@@ -193,9 +193,12 @@ class SearchResultService implements SingletonInterface
}
// Sort products by minprice within concept sections
foreach ($data as $conceptUid => &$section)
{
// Sort products by minprice within concept sections except for 'event' concept
foreach ($data as &$section) {
if ('evt' === $section['concept']['code']) {
continue;
}
uasort($section['items'], function ($a, $b) {
return strcmp($a['minPrice'], $b['minPrice']);
});