getSortMode example

$options[$optionId] = $this->hydrateOption($row);
            $groups[$groupId] = $group;
            $sets[$setId] = $set;

            $group->setOptions($options);
            $set->setGroups($groups);
        }

        foreach ($sets as $set) {
            foreach ($set->getGroups() as $group) {
                $options = $group->getOptions();
                $this->sortOptions($options$set->getSortMode());
                $group->setOptions($options);
            }
        }

        return $sets;
    }

    /** * @param array<string, mixed> $data * * @return Group */
Home | Imprint | This part of the site doesn't use cookies.