Skip to content

Commit

Permalink
Fix inconsistant returns from the db
Browse files Browse the repository at this point in the history
  • Loading branch information
pahans committed May 24, 2024
1 parent 16530a2 commit df2c95e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export async function fetchAllPosts(offset = 0) {
sql`substring(description from 1 for 300)`.as("description"),
"createdAt",
])
.orderBy("createdAt desc")
.orderBy(["createdAt desc", "title"])
.offset(offset)
.limit(POST_LIST_PAGE_SIZE)
.execute();
Expand Down

0 comments on commit df2c95e

Please sign in to comment.