From 44859e073d2753f642bb475ab9d4af919af74dc0 Mon Sep 17 00:00:00 2001 From: Ronnie Friman <L4168@student.jamk.fi> Date: Mon, 1 Jul 2019 20:12:02 +0300 Subject: [PATCH] added orderBy --- src/game/game.entity.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/game/game.entity.ts b/src/game/game.entity.ts index b1a9d38..b580665 100644 --- a/src/game/game.entity.ts +++ b/src/game/game.entity.ts @@ -46,7 +46,11 @@ export class GameEntity { } // table that stores players associated with particular game -@Entity('Game_Person') +@Entity('Game_Person', { + orderBy: { + person: 'ASC', + }, +}) export class Game_PersonEntity { @PrimaryGeneratedColumn('uuid') gamepersonId: string; @Column({ type: 'text', nullable: true }) role: string; -- GitLab