diff --git a/foreign dlls/ClientDependency.Core.dll b/foreign dlls/ClientDependency.Core.dll index 4e21e143c9..c666e6ea9c 100644 Binary files a/foreign dlls/ClientDependency.Core.dll and b/foreign dlls/ClientDependency.Core.dll differ diff --git a/umbraco/businesslogic/User.cs b/umbraco/businesslogic/User.cs index 725208fb49..8387c3e4e0 100644 --- a/umbraco/businesslogic/User.cs +++ b/umbraco/businesslogic/User.cs @@ -3,6 +3,8 @@ using System.Data; using System.Configuration; using System.Collections; using umbraco.DataLayer; +using System.Collections.Generic; +using System.Linq; namespace umbraco.BusinessLogic { /// @@ -320,24 +322,20 @@ namespace umbraco.BusinessLogic { /// Gets all users /// /// - public static User[] getAll() { - System.Collections.ArrayList tmpContainer = new System.Collections.ArrayList(); + public static User[] getAll() { IRecordsReader dr; dr = SqlHelper.ExecuteReader("Select id from umbracoUser"); - while (dr.Read()) { - tmpContainer.Add(BusinessLogic.User.GetUser(dr.GetInt("id"))); + List users = new List(); + + while (dr.Read()) + { + users.Add(User.GetUser(dr.GetInt("id"))); } dr.Close(); - User[] retVal = new User[tmpContainer.Count]; - int c = 0; - foreach (User u in tmpContainer) { - retVal[c] = u; - c++; - } - return retVal; + return users.OrderBy(x => x.Name).ToArray(); } diff --git a/umbraco/cms/businesslogic/task/Task.cs b/umbraco/cms/businesslogic/task/Task.cs index 8eb680dd40..7eec16cb13 100644 --- a/umbraco/cms/businesslogic/task/Task.cs +++ b/umbraco/cms/businesslogic/task/Task.cs @@ -257,28 +257,4 @@ namespace umbraco.cms.businesslogic.task #endregion } - - /// - /// A collection of tasks. - /// - public class Tasks : CollectionBase - { - /// - /// Adds the specified new task. - /// - /// The new task. - public virtual void Add(Task NewTask) - { - this.List.Add(NewTask); - } - - /// - /// Gets the at the specified index. - /// - /// - public virtual Task this[int Index] - { - get { return (Task) this.List[Index]; } - } - } } diff --git a/umbraco/cms/businesslogic/task/Tasks.cs b/umbraco/cms/businesslogic/task/Tasks.cs new file mode 100644 index 0000000000..e9e8d50c63 --- /dev/null +++ b/umbraco/cms/businesslogic/task/Tasks.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Data; +using System.Text; +using System.Runtime.CompilerServices; +using umbraco.BusinessLogic; +using umbraco.DataLayer; + +namespace umbraco.cms.businesslogic.task +{ + /// + /// A collection of tasks. + /// + public class Tasks : CollectionBase + { + /// + /// Adds the specified new task. + /// + /// The new task. + public virtual void Add(Task NewTask) + { + this.List.Add(NewTask); + } + + /// + /// Gets the at the specified index. + /// + /// + public virtual Task this[int Index] + { + get { return (Task)this.List[Index]; } + } + } +} diff --git a/umbraco/cms/umbraco.cms.csproj b/umbraco/cms/umbraco.cms.csproj index f84888fca1..8ad55476fc 100644 --- a/umbraco/cms/umbraco.cms.csproj +++ b/umbraco/cms/umbraco.cms.csproj @@ -176,6 +176,7 @@ True PackageFiles.resx + Code diff --git a/umbraco/presentation/config/ClientDependency.config b/umbraco/presentation/config/ClientDependency.config index 6f345d39a4..f9992259eb 100644 --- a/umbraco/presentation/config/ClientDependency.config +++ b/umbraco/presentation/config/ClientDependency.config @@ -1,20 +1,23 @@ - + - - + - + + isDebug="false"/> - + -