I tried the two commands and they return the same results, I just want to know what's the possible difference between the two R commands:
x[with(x, order(x$CHROM)), ]
x[ order(x$CHROM) , ]
An example can be run online is : https://www.rdocumentation.org/packages/base/versions/3.6.2/topics/with
mtcars[with(mtcars, order(mtcars$cyl)), ]
mtcars[ order(mtcars$cyl) , ]