Right now they're just inserted chronologically, which might not always make sense.
You're being kind (something I've never been accused of)... it never makes any sense at all... it's far easier than any of the alternatives, so I understand why it's done that way, but it doesn't make sense.