This question Is there a way to get the count size for a JPA Named Query with a result set? has an accepted answer, but it is drowned pretty drowned in other answers - even though it has positive upvotes. Why is that?

It's at the top for me... Maybe add a screenshot? –  Sam Jun 26 at 8:47
You're probably sorting by "active" or "oldest", not "votes". –  Frédéric Hamidi Jun 26 at 8:48
I had to look, but I have default sorting (by active) as in any other question –  Zavael Jun 26 at 8:51
Its same for me. It is showing after 2 answers with 0 and 1 upvotes. –  Jatin Jun 26 at 21:28
I'm confused why 'active' is your default sorting for answers. That's not the case for me (Votes). Why wouldn't votes be the default sorting? "Good answers rise to the top" only works when votes is your default sort ;) –  Joe Jun 26 at 21:31
Related:… –  Jefffrey Jun 28 at 19:46

2 Answers 2

up vote 72 down vote accepted

It's self-answered and the asker accepted their own answer. In that case, we don't sort that answer to the top.

didnt know that, thanks for clarifying.. I do not see any meaningfull reason for that, as any accepted question (own or not) can be wrong or bad, so the only effect is that i dont see the "correct" answer as first... but i am sure this has beed discused and the decision is supported –  Zavael Jun 26 at 8:55
@Zavael What about this: the Op asks a question, you answer it correctly. He downvotes you for no reason, and you point that out to him. Afterwards he posts exactly the same answer as yours and accepts its self answer. (real example happened to me) Normally answers that are basically copy/pasted are deleted since they only add noise. –  Bakuriu Jun 26 at 12:59
@Bakuriu - yes I thought about this, but he can do that even now, if his answer remains at the position where it is... what will change that his answer will not be TOP-ed? and if something like this happens, the its likely that after pointing it out the community downwotes his answer so it will be at the top with dozen of minuses :) - public punishment –  Zavael Jun 26 at 13:17
@Zavael We want the good answers to go on top. People often don't read past the first answer, even though it may be worse than other answers. –  Bakuriu Jun 26 at 13:30
@Zavael It would be really meta if you copied this answer yourself and accepted it. –  Señor O Jun 26 at 20:47
@Bakuriu ok, but there exists some presumption of innocence. You expect from the beginning that the users own answer is copied or bad or in other way not worth to be TOP-ed? :) –  Zavael Jun 27 at 6:46
@SeñorO i dont understand the term "to be really meta":( –  Zavael Jun 27 at 6:48
@Zavael If the OP answer is good it will be upvoted anyway and go on top (see all the awesome self-answered question by top users for example). So I really don't see any downside and this mechanism has the upside of handling the cases were the OP accepts the "wrong" answer. –  Bakuriu Jun 27 at 7:20
@Bakuriu With this reasoning we don't need any acceptance priority in sorting of solutions at all since the good answers will be upvoted anyway. –  Trilarion Jun 28 at 19:06
@Bakariu I agree completely, we want good answers on top, and votes are meant to sort out good answers from less good answers. So why do we even put any accepted answer on top? Reasoning is exactly the same for self- and non-self-accepted answers. If it's good, it'll reach the top anyway. –  KPM Jun 30 at 16:20

It's not on top because it's a self-answer.

The only time an accepted answer doesn't stick to the top is when it's a self-answer. Then it's sorted as though it were any other answer.

+1 Aint it a bitch when you answer a question only to find someone else said exactly the same thing two seconds before you :) –  Carl Smith Jun 26 at 13:07

You must log in to answer this question.

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