© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•2y ago•
3 replies
vr7bd

case insensitive orderBy

I want to do an
orderBy
orderBy
that is case insensitive. How do I do it?
Solution
Hello, @vr7bd. I think you can try smth like this:

 .orderBy(sql`lower(${<YOUR_COLUMN>})`)
 .orderBy(sql`lower(${<YOUR_COLUMN>})`)
Jump to solution
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

arrayOverlaps case insensitive
Drizzle TeamDTDrizzle Team / help
12mo ago
schema unique case insensitive
Drizzle TeamDTDrizzle Team / help
3y ago
Creating a Case-Insensitive Unique Index
Drizzle TeamDTDrizzle Team / help
3y ago
Dynamic orderBy
Drizzle TeamDTDrizzle Team / help
3y ago