@@ -10,6 +10,7 @@ namespace InABox.Configuration
}
[UserTracking(false)]
+ [Unrecoverable]
public class GlobalSettings : Entity, IPersistent, IRemotable, ILicense<CoreLicense>
{
public string Section { get; set; } = "";
@@ -19,6 +19,7 @@ namespace InABox.Configuration
public class UserSettings : Entity, IPersistent, IRemotable, ILicense<CoreLicense>
public string Section { get; set; }
@@ -2728,6 +2728,12 @@ namespace InABox.Core
return new Queue<T>(enumerable.ToArray());
+ public static void SortBy<T, TProp>(this List<T> list, Func<T, TProp> comparison)
+ where TProp : IComparable
+ {
+ list.Sort((a, b) => comparison(a).CompareTo(comparison(b)));
+ }
+
#endregion