diff --git a/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts b/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts index 8e4daffc5e..9d44175369 100644 --- a/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts +++ b/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts @@ -1332,7 +1332,7 @@ class BaseModelSqlv2 { ); obj.offset = Math.max(+(args.offset || args.o) || 0, 0); obj.fields = args.fields || args.f || '*'; - obj.sort = args.sort || args.s || this.model.primaryKey?.title; + obj.sort = args.sort || args.s; return obj; }