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
Mykhailo12mo ago
Hello, @vr7bd. I think you can try smth like this:
.orderBy(sql`lower(${<YOUR_COLUMN>})`)
.orderBy(sql`lower(${<YOUR_COLUMN>})`)
vr7bd
vr7bdOP12mo ago
Thanks a lot!

Did you find this page helpful?