I am trying to sort a data frame in R by a single column and whatever method I use to sort it, the data is, not sorted, partially sorted, or in a random order and I don't understand why it is not working.
The data frame has a squad name and a finish position, I am trying to sort by finish position
df <- df[order(FinishPos),]
when running the code above it puts it in the order: 1,10,11,12,13,14,15,16,17,18,19,2,20,3,4,5,6,7,8,9 so it is sorted in parts but not from 1 to 20 like I want