Skip to content

Commit

Permalink
fix persons organization sorting to be done by primary affiliation
Browse files Browse the repository at this point in the history
  • Loading branch information
konolak committed Nov 27, 2024
1 parent 486e6d9 commit d1e54d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/portal/services/sort.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,10 @@ export class SortService {
[organizationSortString]: {
order: this.sortDirection ? 'desc' : 'asc',
mode: "min",
nested: this.generateNested('activity.affiliations'),
nested: this.generateNested('activity.affiliations', this.generateTermFilter(
'activity.affiliations.itemMeta.primaryValue',
true
)),
unmapped_type : "long",
},
},
Expand Down

0 comments on commit d1e54d4

Please sign in to comment.