diff --git a/plugins/recruit-resources/src/components/Vacancies.svelte b/plugins/recruit-resources/src/components/Vacancies.svelte index 14726fb9d2..b048fba26c 100644 --- a/plugins/recruit-resources/src/components/Vacancies.svelte +++ b/plugins/recruit-resources/src/components/Vacancies.svelte @@ -60,8 +60,8 @@ const applicationSorting = (a: Doc, b: Doc) => (applications?.get(b._id as Ref)?.count ?? 0) - (applications?.get(a._id as Ref)?.count ?? 0) ?? 0 const modifiedSorting = (a: Doc, b: Doc) => - (applications?.get(b._id as Ref)?.modifiedOn ?? 0) - - (applications?.get(a._id as Ref)?.modifiedOn ?? 0) ?? 0 + (applications?.get(b._id as Ref)?.modifiedOn ?? b.modifiedOn) - + (applications?.get(a._id as Ref)?.modifiedOn ?? a.modifiedOn) ?? 0 const replacedKeys: Map = new Map([ [