This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user