I'm trying to set a default sort order to products listing in category page.
I have seen people suggest using
<action method="setDefaultOrder">
<argument name="sort" xsi:type="string">name</argument>
</action>
<action method="setDefaultDirection">
<argument name="dir" xsi:type="string">asc</argument>
</action>
or by using
<action method="setSortBy"><string>name</string></action>
<action method="setDefaultDirection">
<argument name="dir" xsi:type="string">asc</argument>
</action>
Unfortunately none of the above method worked for me. But I just want to know what's the different between setDefaultOrder and setSortBy?