From 0c0a3f302bbdfa348782f2925bde1c9ae4d060eb Mon Sep 17 00:00:00 2001 From: GabrielMeyer Date: Tue, 28 May 2019 09:56:53 +0200 Subject: [PATCH] Refactores sorting of assignment-list - In case of the name the list is sorted by `title` instead of `assignment` - For the case of 'creation date' the list will be sorted by `id` --- .../assignments/services/assignment-sort-list.service.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client/src/app/site/assignments/services/assignment-sort-list.service.ts b/client/src/app/site/assignments/services/assignment-sort-list.service.ts index ec7169b96..bfd5a4d27 100644 --- a/client/src/app/site/assignments/services/assignment-sort-list.service.ts +++ b/client/src/app/site/assignments/services/assignment-sort-list.service.ts @@ -17,9 +17,10 @@ export class AssignmentSortListService extends BaseSortListService[] = [ - { property: 'assignment', label: 'Name' }, + { property: 'title', label: 'Name' }, { property: 'phase', label: 'Phase' }, - { property: 'candidateAmount', label: 'Number of candidates' } + { property: 'candidateAmount', label: 'Number of candidates' }, + { property: 'id', label: 'Creation date' } ]; /** @@ -39,7 +40,7 @@ export class AssignmentSortListService extends BaseSortListService> { return { - sortProperty: 'assignment', + sortProperty: 'title', sortAscending: true }; }