Dear R-users,
is there some way how to pass various colnames to the following code for
sorting data.frames?

mydf.ordered<-with(mydf, mydf[order(colname1,colname2, colnameX, decreasing
= TRUE), ])



I was trying something like

Afunction<-function (mydf,colnames,decreasing=T){

     mydf.ordered<-with(mydf, mydf[order(colnames, decreasing = decreasing),
])

 }

but it didnt work
please help
thank you


Jiri Voller

	[[alternative HTML version deleted]]

