I have an array that looks like this:
LH_CV 0.044919900
LH_IQ 0.457549906
LH_Kur 0.007265657
LH_Max 0.572179944
LH_Mean 0.592315043
LH_Min -0.053051707
LH_Mode 0.352844542
LH_P01 0.107923404
LH_P05 0.292272397
LH_P10 0.356974061
LH_P20 0.450763661
LH_P25 0.482754310
LH_P30 0.511708889
LH_P40 0.544075112
LH_P50 0.571894184
LH_P60 0.586855536
LH_P70 0.592084683
LH_P75 0.592076738
LH_P80 0.590268021
LH_P90 0.581416025
LH_P95 0.577601830
LH_P99 0.572313030
And the thing is that I would like to order the values from highest to lowest but that I would continue to put the names of the rows. When doing so with the function sort()
, it removes them.
Thanks in advance.