Table Component column sorting dynamic ranking column

I was wondering if anybody had tried this/had an example?

Even a the simplest of example

Thanks