Changeset 14927 for branches/PersistenceReintegration/HeuristicLab.Optimization/3.3/RunCollectionModification/RunCollectionSorter.cs
- Timestamp:
- 05/04/17 17:19:35 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceReintegration/HeuristicLab.Optimization/3.3/RunCollectionModification/RunCollectionSorter.cs
r14185 r14927 28 28 using HeuristicLab.Data; 29 29 using HeuristicLab.Parameters; 30 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;30 using HeuristicLab.Persistence; 31 31 32 32 namespace HeuristicLab.Optimization { 33 33 [Item("RunCollection Sorter", "Sorts a run collection according the specified key variable.")] 34 [Storable Class]34 [StorableType("95b92306-f4fd-4e40-b599-cc5a9b225293")] 35 35 public class RunCollectionSorter : ParameterizedNamedItem, IRunCollectionModifier { 36 36 … … 100 100 public void Modify(List<IRun> runs) { 101 101 var sortedRuns = runs 102 .Select(r => new { Run = r, Key = GetValue(r)})102 .Select(r => new { Run = r, Key = GetValue(r) }) 103 103 .OrderBy(r => r.Key, Comparer) 104 104 .Select(r => r.Run).ToList();
Note: See TracChangeset
for help on using the changeset viewer.