For some categories I want to set the default products sort order by most viewed.
I have a custom function to count unique pageviews by product and date. Now I need to apply it as the default sort order.
What file contains the sorting algorithms? Once I find it I can do a conditional sort by category.
Bookmarks