Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
On this question the accepted answer is not first. In this case the accepted answer has no up-votes, but I've seen this a couple times where there were up-votes too, so I don't think that's the cause. Why does this happen?
The accepted answer was posted by the person who asked the question. Not pinning the accepted answer under these circumstances is done to prevent gaming of the system.