For some reason using the order function is removing columns in my dataframe if it has 2 rows or less.
> coredf2
state start end
1 core 3 0
2 core 1 2
> coredf2[order('end')]
state
1 core
2 core
> coredf2[-order('end')]
start end
1 3 0
2 1 2
>stateList
state start end
1 core 1 4
2 core 7 10
>stateList[order(stateList[, 'start'])]
state start
1 core 1
2 core 7
Is this an intended effect? I don't want to write a special exception for 2 or less rows so is there something that doesn't suffer from this?