Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
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.