I have a df of numbers and am doing some ordering. The output is placing 7 next to 70 as if 7 is 70. Why is this happening. The pasted stuff below is the actual output. Notice how 263 is treated smaller than 27 as if there is a 0 behind the 7 in 27. 4 is after 38 as if 4 means 40. I'm using the order().I have a df of numbers and am doing some orderi