Merge pull request #5929 from crobibero/sort

This commit is contained in:
Bond-009
2021-05-11 12:41:25 +00:00
committed by GitHub
4 changed files with 21 additions and 4 deletions

View File

@@ -5463,7 +5463,9 @@ AND Type = @InternalPersonType)");
commandText += whereText + " group by PresentationUniqueKey";
if (query.SimilarTo != null || !string.IsNullOrEmpty(query.SearchTerm))
if (query.OrderBy.Count != 0
|| query.SimilarTo != null
|| !string.IsNullOrEmpty(query.SearchTerm))
{
commandText += GetOrderByText(query);
}