1

is it possible to have different Default Sort Direction for different sortable attributes?

is sort direction a value that can be changed using updateAttribute or is the sort direction global?

thank you

2
  • Not sure what you're asking here, mind giving a full example of what you'd want achieved? Commented Aug 21, 2015 at 8:23
  • For example I would like when the user selects sort by price the direction to be asc, but when he selects sort by date the direction to be desc. So I would like to know if an attribute has something like a 'default sorting direction', but if I understand Marius' answer below there is not such a thing. Hope this clears out what I asked.
    – zto zto
    Commented Aug 21, 2015 at 13:28

1 Answer 1

3

The sorting direction is not attribute dependent.
attribute and direction are 2 different independent criteria.
The direction can be selected by the user. and when changing the sorting attribute it defaults to ASC.

1
  • so I guess I could use some js to change the direction if the user selects another sorting method. Thank you!
    – zto zto
    Commented Aug 21, 2015 at 13:32

Not the answer you're looking for? Browse other questions tagged or ask your own question.