This commit is contained in:
parent
d3b22ecf48
commit
d43d151e75
2 changed files with 6 additions and 4 deletions
|
|
@ -274,7 +274,8 @@ namespace BMA.EHR.Application.Repositories.Reports
|
|||
{
|
||||
if (retire.TypeReport == null)
|
||||
{
|
||||
profile_retire = profile_retire.OrderBy(x => rootOrder.ToObject<List<string>>().IndexOf(x.root))
|
||||
profile_retire = profile_retire
|
||||
.OrderBy(x => string.IsNullOrEmpty(x.root) ? int.MaxValue : rootOrder.ToObject<List<string>>().IndexOf(x.root))
|
||||
.ThenBy(x => child1Order.ToObject<List<string>>().IndexOf(x.child1 ?? ""))
|
||||
.ThenBy(x => child2Order.ToObject<List<string>>().IndexOf(x.child2 ?? ""))
|
||||
.ThenBy(x => child3Order.ToObject<List<string>>().IndexOf(x.child3 ?? ""))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue