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

closed as unclear what you're asking by Adarsh Khatri, dh47, saravanavelu, 7ochem, Mufaddal Aug 21 '15 at 10:37

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Not sure what you're asking here, mind giving a full example of what you'd want achieved? – Julien Lachal Aug 21 '15 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 Aug 21 '15 at 13:28

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.

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

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