diff --git a/pkg/internal/http/api/recommendation_api.go b/pkg/internal/http/api/recommendation_api.go index 741f5f6..1097bb3 100644 --- a/pkg/internal/http/api/recommendation_api.go +++ b/pkg/internal/http/api/recommendation_api.go @@ -26,7 +26,7 @@ func listRecommendation(c *fiber.Ctx) error { }) tx := database.C.Where("id IN ?", postIdx) - newPosts, err := services.ListPost(tx, featuredMax, 0, " DESC") + newPosts, err := services.ListPost(tx, featuredMax, 0, "id ASC") if err != nil { return fiber.NewError(fiber.StatusInternalServerError, err.Error()) }