Browse Source
Merge pull request #8900 from abpframework/order-fix
Order property extension property dictionary values by their keys
pull/8925/head
Halil İbrahim Kalkan
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
1 deletions
-
framework/src/Volo.Abp.ObjectExtending/Volo/Abp/ObjectExtending/ObjectExtensionInfo.cs
|
|
|
@ -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] |
|
|
|
|