Wifi sort strength

How could I sort strength of wifi from high to low.
Now I can scan rssi and ssid but I don’t how to sort.

Maybe you can convert the value to an absolute value. and use a Bubble Sort method to order this.