I have a dataframe with rownames (s1, s10, s11, s2, s3 ...) but they are not ordered numerically by rowname. I have tried df <- df[order(rownames(df)),] but
df <- df[order(rownames(df)),]