order values by their keys.

pull/8900/head
Ilkay Ilknur 5 years ago
parent a82a4f0591
commit 7e52a7ac14

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

Loading…
Cancel
Save