Search
Get Started
DT
Drizzle Team
•
2y ago
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 Team
Join
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,793
Members
View on Discord
Was this page helpful?
Yes
No
Solution
M
Mykhailo
•
3/1/24, 7:32 PM
Hello
,
@vr7bd
. I think you can try smth like this
:
.
orderBy
(
sql
`lower(${
<
YOUR_COLUMN
>
})`
)
.
orderBy
(
sql
`lower(${
<
YOUR_COLUMN
>
})`
)
V
vr7bd
OP
•
3/1/24, 7:36 PM
Thanks a lot
!