Searching order seems to be broken when searching in topic

Yes I think your analysis is correct. We limit results to 50 first posts, so any topic with more than 50 posts will have incorrect ranking if a post after the 50th post has more likes than any in first 50 posts.

3 Likes