Skip to content

[5.x] Listen to default_sort_by from magento#1290

Merged
royduin merged 2 commits into
masterfrom
feature/default-sort-by
May 19, 2026
Merged

[5.x] Listen to default_sort_by from magento#1290
royduin merged 2 commits into
masterfrom
feature/default-sort-by

Conversation

@Jade-GG
Copy link
Copy Markdown
Collaborator

@Jade-GG Jade-GG commented May 18, 2026

ref: GT-2556

The default_sort_by option can be set in Magento, but we don't listen to it. It has one special case position which is the same as our relevance sort. Everything else that this value is generated from all the actual attributes that are sortable in Magento.

The way this code is structured means that if nothing matches, it will fall back to the relevance sort regardless.

@royduin royduin merged commit 8a21d8f into master May 19, 2026
16 of 18 checks passed
@royduin royduin deleted the feature/default-sort-by branch May 19, 2026 08:40
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.

2 participants