Skip to content

Commit

Permalink
disable sort for summary count
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelweave committed Nov 15, 2024
1 parent 449af6a commit 41dcd5d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,9 @@ public SearchOptions Create(
searchOptions.UnsupportedSearchParams = unsupportedSearchParameters;

var searchSortErrors = new List<string>();
if (searchParams.Sort?.Count > 0)

// Sort is unneded for summary count
if (searchParams.Sort?.Count > 0 && searchParams.Summary != SummaryType.Count)
{
var sortings = new List<(SearchParameterInfo, SortOrder)>(searchParams.Sort.Count);
bool sortingsValid = true;
Expand Down

0 comments on commit 41dcd5d

Please sign in to comment.