From 5c4d7af91756e28640ba4405b68f7a64bcadd5c7 Mon Sep 17 00:00:00 2001 From: FinnStutzenstein Date: Tue, 21 May 2019 17:26:52 +0200 Subject: [PATCH] Readded default sorting for agenda The default sorting was removed here: https://github.com/OpenSlides/OpenSlides/pull/4671/files#diff-c72ce8d0c2c339385819bf10c685c276L128 Readded it in the repository (instead of the filter-/sortingservices), so the agenda is always well sorted. --- .../src/app/core/repositories/agenda/item-repository.service.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/src/app/core/repositories/agenda/item-repository.service.ts b/client/src/app/core/repositories/agenda/item-repository.service.ts index 019086110..7c22d2a3a 100644 --- a/client/src/app/core/repositories/agenda/item-repository.service.ts +++ b/client/src/app/core/repositories/agenda/item-repository.service.ts @@ -56,6 +56,8 @@ export class ItemRepositoryService extends BaseRepository { Motion, MotionBlock ]); + + this.setSortFunction((a, b) => a.weight - b.weight); } public getVerboseName = (plural: boolean = false) => {