I am using Sequelize to interact with my Postgres database. Recently, the QA team pointed out that special characters like @, #, etc. are ignored in the sorting while we wanted Javascript-like sorting. I was somehow able to fix the issue in one place using the following code:
order: [
[
sequelize.fn(
'convert_to',
sequelize.fn(
'lower',
sequelize.literal( `"${ column_name }" COLLATE "en_US"` )
),
'UTF8' )
, 'ASC' ]
],
However, I am looking for some config-level change that fixes the issue everywhere in the code. Is that possible? Any help is highly appreciated.