How can I modify A-Z sorting logic to move titles with numbers to bottom?

Hey everyone,

I am currently working on a store and I was wondering if there’s a way to edit the logic of the sorting feature within collection pages? I am familiar with coding but not much with liquid.

I am looking to make the A-Z sorting feature so that titles with numbers will be at the bottom and the letters at the top. I was trying to play around with the liquid code, but I just can’t seem to find where the logic for the sorting functions are kept. All I was able to find is where the drop down main to select each of the options is created:


            
            
          

I am using the Canopy theme.

Please help!

Thanks,

Rozen

Another thing that I am willing to settle for is ordering my collections based on the vendor name instead of the title of the product. I would there will be something somewhere defining these sorting options

Hi @Rozen01 - there’s not a way to edit the sorting logic in the Shopify UI (!). The best way to do what you’re looking to do is to either rename the products or use the custom sorting feature within a collection. If you’re interested in maximizing sales, you can also look into collection sorting tools like ours.

Hope this helps!