I was just browsing the question Deserializing empty xml attribute value into nullable int property using XmlSerializer on stackoverflow and I noticed that the accepted answer is listed after the answer with the highest votes (when I sort by votes).

Should the accepted answer not always be listed on top no matter what sorting (active, oldest, votes) I choose?

  • Accepted answer by OP is treated as a normal answer.
    – Himanshu
    May 16, 2013 at 10:46

1 Answer 1


Accepting own answer is treated as a normal answer while sorting. So if the unaccepted answers has more votes then accepted one, it will be listed on top (when sorting by votes.)

  • In this case, stackoverflow.com/q/17401847, unaccepted answer has more votes than accepted one, but it comes at last (when sorting by votes).
    – amit jha
    Apr 13, 2016 at 12:52
  • @amitjha : The above rule applies only when OP himself answers the question and accept. In the question you have linked OP didn't answer himself.
    – Himanshu
    Apr 14, 2016 at 10:00
  • IMO, this rule does not make sense. The answer marked as solution by the asker should be pinned to top, no matter who submitted it. The asker knows best. I've seen many cases where the answer marked as solution IS the correct solution. Voting for an answer is often simply a casual "i like this", not "i believe this is the solution".
    – JohnyWhy
    Apr 11, 2017 at 4:20

Not the answer you're looking for? Browse other questions tagged .