This commit is contained in:
2018-09-25 18:17:33 +00:00
parent 52ba3bb970
commit cb3d5105b5
2 changed files with 23 additions and 85 deletions

View File

@@ -313,9 +313,12 @@ namespace AyaNova.Biz
MatchingObjects = CanReadMatchingObjects;
}
//Sort and group the matching objects list in return order
//Customer.OrderBy(c => c.LastName).ThenBy(c => c.FirstName)
var OrderedMatchingObjects = MatchingObjects.OrderBy(x => x.ObjectType).ThenByDescending(x => x.ObjectId);
//Build the return list from the remaining matching objects list
foreach (AyaTypeId i in MatchingObjects)
foreach (AyaTypeId i in OrderedMatchingObjects)
{
SearchResult SR = new SearchResult();
SR.Name = BizObjectNameFetcher.Name(i, ct);