Skip to content

Commit

Permalink
Modify sort criteria
Browse files Browse the repository at this point in the history
  • Loading branch information
sarkikos committed Apr 5, 2024
1 parent f7a4cd5 commit 156e2b4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,6 @@ protected override Func<SortDescriptor<FundingCall>, IPromise<IList<ISort>>> Gen
{
// Sort funding calls
return sortDescriptor => sortDescriptor
.Field(f => f.CallProgrammeOpenDate, SortOrder.Descending);
.Field(f => f.CallProgrammeDueDate, SortOrder.Ascending);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ protected override Func<QueryContainerDescriptor<Infrastructure>, QueryContainer
protected override Func<SortDescriptor<Infrastructure>, IPromise<IList<ISort>>> GenerateSortForSearch(InfrastructureSearchParameters parameters)
{
// Sort infrastructures
return sortDescriptor => sortDescriptor
.Field(f => f.NameFi, SortOrder.Ascending);
return sortDescriptor => sortDescriptor;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ protected override Func<QueryContainerDescriptor<Organization>, QueryContainer>
protected override Func<SortDescriptor<Organization>, IPromise<IList<ISort>>> GenerateSortForSearch(OrganizationSearchParameters parameters)
{
// Sort organizations
return sortDescriptor => sortDescriptor
.Field(f => f.NameFi, SortOrder.Ascending);
return sortDescriptor => sortDescriptor;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,6 @@ protected override Func<SortDescriptor<ResearchDataset>, IPromise<IList<ISort>>>
{
// Sort research datasets
return sortDescriptor => sortDescriptor
.Field(f => f.NameFi, SortOrder.Ascending);
.Field(f => f.Created, SortOrder.Descending);
}
}

0 comments on commit 156e2b4

Please sign in to comment.