I’m developing an application using NestJS, TypeORM, and PostgreSQL.
I’ve noticed that all my queries are being sorted by the last modification date. I would like to have all my queries sorted by id in descending order (id DESC) by default, without having to specify the sorting manually in every query.
Is there a way to change this default sorting behavior in TypeORM or NestJS?
Thank you!