sort by recency in queries