This question already has an answer here:
I ran into this question where something rotten happened:
- A user posted a wrong answer
- After this, user Barmar posted correct answer
- After this, the first user edited their answer to be a copy of Barmar's answer, so looking at the answer time, it looks like they posted their answer BEFORE Barmar!