Skip to content

order by descending? #457

Answered by mattiaz9
Sejmou asked this question in Q&A
Apr 15, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

It's easier than you think:

await db.select().from(users).orderBy(asc(users.name), desc(users.createdAt));

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Sejmou
Comment options

Answer selected by AndriiSherman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants