Skip to content

ZIG-233 Add sort order#5

Merged
luckyraul merged 1 commit into
v2.4from
ZIG-233-sort-order
Jun 9, 2026
Merged

ZIG-233 Add sort order#5
luckyraul merged 1 commit into
v2.4from
ZIG-233-sort-order

Conversation

@sekulich-mygento

Copy link
Copy Markdown
Contributor

No description provided.

usort($preparedItems, function ($a, $b) {
return ($a['sort_order'] ?? 0) <=> ($b['sort_order'] ?? 0);
});

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Так как мы собирали выше массив с ключами по сущностям, после того как склеили в один нужно отсортировать по sort_order

@luckyraul luckyraul merged commit de8710a into v2.4 Jun 9, 2026
4 checks passed
@luckyraul luckyraul deleted the ZIG-233-sort-order branch June 9, 2026 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants