Sorting Table Labels

I know it’s possible to sort table values. Is it possible to sort the labels according to the values?

Ie. let’s say I have server1,server2, and cpu values accordingly 1%,99%.
If I sort the values by value desc. it will show the 99% (server2) and then the 1% (server1) below. But in the table it will show server1 and after server2.