R defaults to ordering axes. If I try to generate a reproducible example that looks like what you seem to describe as your data types, it automagically chronologically sorts.