Skip to content

Commit

Permalink
Merge pull request #1883 from CSCfi/CSCTTV-4092
Browse files Browse the repository at this point in the history
fix persons organization sorting to be done by primary affiliation
  • Loading branch information
konolak authored Nov 27, 2024
2 parents c98e732 + d1e54d4 commit efa71da
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 efa71da

Please sign in to comment.