Merge pull request #8900 from abpframework/order-fix

Order property extension property dictionary values by their keys
pull/8925/head
Halil İbrahim Kalkan 4 years ago committed by GitHub
commit 72b443ee2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,6 +2,7 @@
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using JetBrains.Annotations;
using Volo.Abp.Data;
@ -68,7 +69,9 @@ namespace Volo.Abp.ObjectExtending
[NotNull]
public virtual ImmutableList<ObjectExtensionPropertyInfo> GetProperties()
{
return Properties.Values.ToImmutableList();
return Properties.OrderBy(t=>t.Key)
.Select(t=>t.Value)
.ToImmutableList();
}
[CanBeNull]

Loading…
Cancel
Save