As far as I'm concerned, I have used the PostgreSQL module citext and used the data type CITEXT instead of TEXT. It makes both sort and search on these columns case insensitive.
The module can be installed with the SQL command CREATE EXTENSION IF NOT EXISTS citext;