I have a big file that looks like this:
Col1_names Col1_values Col2_names Col2_values a 0.2 b 0.12 c 0.12 m 0.2 d 0.5 n 0.21 g 0.3 w 0.1 p 0.1 y 0.3 h 0.32 z 0.01
I need to sort the data.frame below so that it will look like this:
Col1_names Col1_values Col2_names Col2_values p 0.1 z 0.01 c 0.12 w 0.1 a 0.2 b 0.12 g 0.3 m 0.2 h 0.32 n 0.21 d 0.5 y 0.3
In other words I need to sort in ascending order each column containing values ("Col1_values"). I'm quite new in R, so it seems too difficult for me.
In the real case, the data.frame contains around 200 lists.