diff --git a/server.ts b/server.ts index c323cbb..43365c3 100644 --- a/server.ts +++ b/server.ts @@ -247,7 +247,7 @@ app.get("/api/properties", async (c: Context) => { LEFT JOIN Listing_Area ar ON p.listing_area_id = ar.id WHERE ${sqlWhereClause} - ORDER BY l.id DESC LIMIT $${paramCounter} OFFSET $${paramCounter + 1}; + ORDER BY l.created_at DESC LIMIT $${paramCounter} OFFSET $${paramCounter + 1}; `, });