how create sort by discount in collection page

how create sort by discount in collection page

vinayak21
Visitor
2 0 1

how create sort by discount in collection page.
which code define to set in sort by discount .

Replies 2 (2)

Zworthkey
Shopify Partner
5581 642 1575

@vinayak21 
Welcome to Shopify Community.

you have to Add this filter type using code or app, if you are already a developer then you can customized it, according to your need,
thank you

HarisMemon
Shopify Partner
7 1 1

how to customize it. I've added the option-value. Now, what's the next step