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.
This commit is contained in:
FinnStutzenstein 2019-05-21 17:26:52 +02:00
parent 294d324419
commit 5c4d7af917

View File

@ -56,6 +56,8 @@ export class ItemRepositoryService extends BaseRepository<ViewItem, Item> {
Motion, Motion,
MotionBlock MotionBlock
]); ]);
this.setSortFunction((a, b) => a.weight - b.weight);
} }
public getVerboseName = (plural: boolean = false) => { public getVerboseName = (plural: boolean = false) => {