You've mixed up when the answers were posted. If you're on a desktop, you can view when an answer was posted (down to the second!) by hovering your mouse where it says 'answered by...'
Terlor's answer was posted about three minutes before Blaze's, so the site ordered them correctly. On the second thread, your post was submitted about 80 minutes after megamanectric's. Your answer probably looked like it was first when you posted it because the other one went through the approval queue first, i.e. it was posted before yours but made public afterward. All of this is normal.