mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-26 13:47:26 +03:00
Correct sorting by modified time function in Vacancies
Correct sorting by modified time function in Vacancies
This commit is contained in:
commit
2298a08327
@ -60,8 +60,8 @@
|
|||||||
const applicationSorting = (a: Doc, b: Doc) =>
|
const applicationSorting = (a: Doc, b: Doc) =>
|
||||||
(applications?.get(b._id as Ref<Vacancy>)?.count ?? 0) - (applications?.get(a._id as Ref<Vacancy>)?.count ?? 0) ?? 0
|
(applications?.get(b._id as Ref<Vacancy>)?.count ?? 0) - (applications?.get(a._id as Ref<Vacancy>)?.count ?? 0) ?? 0
|
||||||
const modifiedSorting = (a: Doc, b: Doc) =>
|
const modifiedSorting = (a: Doc, b: Doc) =>
|
||||||
(applications?.get(b._id as Ref<Vacancy>)?.modifiedOn ?? 0) -
|
(applications?.get(b._id as Ref<Vacancy>)?.modifiedOn ?? b.modifiedOn) -
|
||||||
(applications?.get(a._id as Ref<Vacancy>)?.modifiedOn ?? 0) ?? 0
|
(applications?.get(a._id as Ref<Vacancy>)?.modifiedOn ?? a.modifiedOn)
|
||||||
|
|
||||||
const replacedKeys: Map<string, BuildModelKey> = new Map<string, BuildModelKey>([
|
const replacedKeys: Map<string, BuildModelKey> = new Map<string, BuildModelKey>([
|
||||||
[
|
[
|
||||||
|
Loading…
Reference in New Issue
Block a user