Product variants sort by best selling

Hi there,

I am looking for a way to sort product variants by best selling. I know there is sort by best selling for collections and it is the collection of products. Is there any way I can collect all the variants and sort them by best selling?