diff --git a/src/Artemis.Core/Models/Profile/ProfileCategory.cs b/src/Artemis.Core/Models/Profile/ProfileCategory.cs index 1a5c6f269..19f0398a2 100644 --- a/src/Artemis.Core/Models/Profile/ProfileCategory.cs +++ b/src/Artemis.Core/Models/Profile/ProfileCategory.cs @@ -167,7 +167,7 @@ public void Load() IsSuspended = Entity.IsSuspended; Order = Entity.Order; - ProfileConfigurations = new ReadOnlyCollection(Entity.ProfileConfigurations.Select(pc => new ProfileConfiguration(this, pc)).ToList()); + ProfileConfigurations = new ReadOnlyCollection(Entity.ProfileConfigurations.Select(pc => new ProfileConfiguration(this, pc)).OrderBy(pc => pc.Order).ToList()); } /// @@ -180,7 +180,10 @@ public void Save() Entity.ProfileConfigurations.Clear(); foreach (ProfileConfiguration profileConfiguration in ProfileConfigurations) + { + profileConfiguration.Save(); Entity.ProfileConfigurations.Add(profileConfiguration.Entity); + } } #endregion diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props index 9c07752b6..e56abfa8e 100644 --- a/src/Directory.Packages.props +++ b/src/Directory.Packages.props @@ -59,7 +59,7 @@ - + \ No newline at end of file