Adjust sorting of search result within concept 'events'
This commit is contained in:
@@ -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']);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user