Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sorting Product collection by attribute value #131

Open
pravalitera opened this issue Jan 11, 2018 · 0 comments
Open

Sorting Product collection by attribute value #131

pravalitera opened this issue Jan 11, 2018 · 0 comments

Comments

@pravalitera
Copy link

I'm trying to order my products by specific attribute value. I mean for example, i always want my blue shoes before the red ones.

I looked into FullText/Collection.php , and found the $sortOrder you talk about in your documentation

It's written :
$sortOrders = ['entity_id' => 'asc'];

Maybe i don't understand, but it seems it's more:
$sortOrders = ['entity_id' =>[direction=> 'asc']];

Am i right ?
But i still don't understand how to sort my collection... with option_text_color, but what to put in it ?

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

No branches or pull requests

1 participant