Relevancy vs Recency

I’m building a personal memory application and would like to give a weight to the recency of the query result and not only the relevancy. Is the best way to do so is simply to sort the results based on recency after finding the most relevant results or is there a better way to approach it?