added sorting for GET /posts/ & /posts/hot