Dear all,
I am having a struct that contains on the first column file names and on the second column a number which is a "rating" of the file on first column

A small subset looks like that

small
牋牋 [,1]牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋 
[1,] "/storage/storage0/59Off.Rtable"
[2,] "/storage/storage0/5912On.Rtable" 
[3,] "/storage/storage0/5912314ff.Rtable"
牋牋 [,2]牋牋牋牋牋牋牋 
[1,] "0.220386301811093"
[2,] "0.405237035258638"
[3,] "0.288659374128626"


I want based on the values of column two to rearrange table elements by keeping though the row elements together.
For example if I order those in ascending order should look like




small
牋牋 
[,1]牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋 
[1,] "/storage/storage0/59Off.Rtable"
[2,] "/storage/storage0/5912314ff.Rtable" 
[3,] " /storage/storage0/5912On.Rtable"

牋牋 [,2]牋牋牋牋牋牋牋 
[1,] "0.220386301811093"
[2,] "0.288659374128626"
[3,] "0.405237035258638"

I have tried with sort, sort.list and order but I have failed .
I do not quite undestand how one can complete this task in R.
Could you please spend some time helping me?

Regards
A

	[[alternative HTML version deleted]]

