Let me get this straight. I have the following data:

I want to sort it base on "x", the result should be

the row that contains more "x" and has the first "x" to the 10th will be at the top, it's like sorting from large to small amount of "x".

how can I possibly do that?

I know how to sort one column base on integers and a-z vice-versa but this one is different for me.