Open pravalitera opened 6 years ago
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'];
$sortOrders = ['entity_id' => 'asc'];
Maybe i don't understand, but it seems it's more: $sortOrders = ['entity_id' =>[direction=> 'asc']];
$sortOrders = ['entity_id' =>[direction=> 'asc']];
Am i right ? But i still don't understand how to sort my collection... with _option_textcolor, but what to put in it ?
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_textcolor, but what to put in it ?