diff --git a/SacsStandardBase/Base/Bus/SacsHierarchyItem.cs b/SacsStandardBase/Base/Bus/SacsHierarchyItem.cs
index b8c421e..0b2dc0b 100644
--- a/SacsStandardBase/Base/Bus/SacsHierarchyItem.cs
+++ b/SacsStandardBase/Base/Bus/SacsHierarchyItem.cs
@@ -496,6 +496,8 @@ namespace Sarand.Net.Standard.Base.Bus
protected Params()
{
}
+ public enum FlagState { Either = 0, True, False }
+ public enum BoolState { Either = 0, True, False }
/// Primary table alias to use if different from default.
public String TableAlias { get; set; }
/// Flag to indicate whether default filter ('1=1') is included if no other filter.
diff --git a/SacsStandardBase/Base/Utils/ListUtil.cs b/SacsStandardBase/Base/Utils/ListUtil.cs
index 415644a..dcff176 100644
--- a/SacsStandardBase/Base/Utils/ListUtil.cs
+++ b/SacsStandardBase/Base/Utils/ListUtil.cs
@@ -1,4 +1,5 @@
-using System;
+using Sarand.Net.Standard.Base.Helpers;
+using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@@ -74,6 +75,15 @@ namespace Sarand.Net.Standard.Base.Utils
return true;
}
+ //-------------------------------------------------------------------
+ ///
+ /// Sort the list into random order.
+ ///
+ public static List Randomise(this List values)
+ {
+ return values.OrderBy(_ => SacsRandomHelper.GetInt32(Int32.MaxValue)).ToList();
+ }
+
//-------------------------------------------------------------------
///
/// Remove the specified range of items from the list to a new list.