When the answers to a question are sorted by number of votes, I see that the accepted answer appears on the top, even though another answer has more votes. Is there a reason for it to work like this. My opinion is that the answer with the highest number of votes should appear on top even if another answer has been accepted. Sometimes, a better answer may be posted after another answer was already accepted, and the better answer may get more votes over time.
The system is set up so that the OP's decision/opinion takes priority over vote count.
Not saying I agree with it. It's just the way it (currently) is.
Here's the main discussion from Stack Overflow's Meta.