improve sort function

This commit is contained in:
Suphonchai Phoonsawat 2023-06-16 16:28:48 +07:00
parent f6f52f68e9
commit 49d6f1eb41

View file

@ -1974,7 +1974,8 @@ namespace BMA.EHR.Recruit.Service.Controllers
r.PositionName,
s.Number
}).ToList()
.OrderByDescending(x => x.Sum)
.OrderBy(x => x.PositionName)
.ThenByDescending(x => x.Sum)
.ToList();
// copy template