Bigcommerce categories by default are always sorted by featured. Well now we can have the default sort as newest, bestselling, alphabetical or price instead.
This mod is based on the following thread:
https://forum.bigcommerce.com/f33/default-sort-order-script-url-fix-2619/
It seems some people were still having an issue after reading the last page of posts.
Here is a fix that works for me:
This is slightly different than the above mentioned mod in that in changes category links and does not
actually redirect the user to the sort page.
Add the following in the HTMLHead.html after the <head> tag and before the </head> tag
With fly out menu
<script type="text/javascript">
$(document).ready(function() {
$(".SideCategoryListFlyout a").each(function() {
$this = $(this);
$this.attr("href", $this.attr("href") + "?sort=bestselling");
});
});
</script>
With classic menu
<script type="text/javascript">
$(document).ready(function() {
$(".SideCategoryListClassic a").each(function() {
$this = $(this);
$this.attr("href", $this.attr("href") + "?sort=bestselling");
});
});
</script>
In the code where you find “?sort=bestselling” simply change it to one of the following, depending on your needs:
Newest: ?sort=newest
Featured: ?sort=featured
Alphabetical, A to Z: ?sort=alphaasc
Alphabetical, Z to A: ?sort=alphadesc
Price, low to high: ?sort=priceasc
Price, high to low: ?sort=pricedesc
Bestselling: ?sort=bestselling
What this code does is loops through each of your links in the category menu and appends ?sort=yourSort to the link. When a user clicks on the link (category), it will be as if they selected that sort.
This does not affect search engine crawls and only changes the sort order if a user click on a category link. Visiting the category directly, without clicking a category link, will still retain featured sort.

[...] Bigcommerce mod to set category default sort [...]