diff options
Diffstat (limited to 'Prebuild/src/Core')
-rw-r--r-- | Prebuild/src/Core/Nodes/ProjectNode.cs | 14 | ||||
-rw-r--r-- | Prebuild/src/Core/Nodes/SolutionNode.cs | 10 |
2 files changed, 19 insertions, 5 deletions
diff --git a/Prebuild/src/Core/Nodes/ProjectNode.cs b/Prebuild/src/Core/Nodes/ProjectNode.cs index 5f03c4d..c56dacc 100644 --- a/Prebuild/src/Core/Nodes/ProjectNode.cs +++ b/Prebuild/src/Core/Nodes/ProjectNode.cs | |||
@@ -81,7 +81,7 @@ namespace Prebuild.Core.Nodes | |||
81 | /// | 81 | /// |
82 | /// </summary> | 82 | /// </summary> |
83 | [DataNode("Project")] | 83 | [DataNode("Project")] |
84 | public class ProjectNode : DataNode | 84 | public class ProjectNode : DataNode, IComparable |
85 | { | 85 | { |
86 | #region Fields | 86 | #region Fields |
87 | 87 | ||
@@ -496,5 +496,15 @@ namespace Prebuild.Core.Nodes | |||
496 | 496 | ||
497 | 497 | ||
498 | #endregion | 498 | #endregion |
499 | } | 499 | |
500 | #region IComparable Members | ||
501 | |||
502 | public int CompareTo(object obj) | ||
503 | { | ||
504 | ProjectNode that = (ProjectNode)obj; | ||
505 | return this.m_Name.CompareTo(that.m_Name); | ||
506 | } | ||
507 | |||
508 | #endregion | ||
509 | } | ||
500 | } | 510 | } |
diff --git a/Prebuild/src/Core/Nodes/SolutionNode.cs b/Prebuild/src/Core/Nodes/SolutionNode.cs index 0121075..c777fa4 100644 --- a/Prebuild/src/Core/Nodes/SolutionNode.cs +++ b/Prebuild/src/Core/Nodes/SolutionNode.cs | |||
@@ -165,8 +165,10 @@ namespace Prebuild.Core.Nodes | |||
165 | { | 165 | { |
166 | get | 166 | get |
167 | { | 167 | { |
168 | return m_Configurations.Values; | 168 | ArrayList tmp = new ArrayList(ConfigurationsTable.Values); |
169 | } | 169 | tmp.Sort(); |
170 | return tmp; | ||
171 | } | ||
170 | } | 172 | } |
171 | 173 | ||
172 | /// <summary> | 174 | /// <summary> |
@@ -189,7 +191,9 @@ namespace Prebuild.Core.Nodes | |||
189 | { | 191 | { |
190 | get | 192 | get |
191 | { | 193 | { |
192 | return m_Projects.Values; | 194 | ArrayList tmp = new ArrayList(m_Projects.Values); |
195 | tmp.Sort(); | ||
196 | return tmp; | ||
193 | } | 197 | } |
194 | } | 198 | } |
195 | 199 | ||