case insensitive orderBy

I want to do an 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
2 Replies
Solution
Mykhailo
Mykhailo10mo ago
Hello, @vr7bd. I think you can try smth like this:
.orderBy(sql`lower(${<YOUR_COLUMN>})`)
.orderBy(sql`lower(${<YOUR_COLUMN>})`)
vr7bd
vr7bdOP10mo ago
Thanks a lot!
Want results from more Discord servers?
Add your server