This also happens sometimes when replying to messages/posts. After reading a thread, I hit reply, scroll down to the last message posted (to cut and paste a quote or user name), scroll back up and write my message, and hit the 'reply' button. WHAM, my message goes before the one I quoted.
This doesn't happen all the time. It seems to occur more often when the thread is getting heavy traffic/replies.