sort related posts by relevance before retrieval