src/Misc/EFTools/XmlCore/Model/Eventing/EfiChangeGroup.cs
/// <summary>
///     Sorts the change group using stable sort algorithm (i.e. one that preservs order of equal values).
/// </summary>
Sorts the change group using stable sort algorithm .
Sorts the change group using stable sort algorithm .
internal ICollection<EfiChange> SortChangesForProcessing(EfiChangeComparer changeComparer)
        {
            var changes = new List<EfiChangeStableSortItem>(Count);
            var i = 0;
            foreach (var change in Changes)
            {
                changes.Add(new EfiChangeStableSortItem(change, i));
                i++;
            }
            changes.Sort(changeComparer);
            var result = new List<EfiChange>(changes.Count);
            foreach (var entry in changes)
            {
                result.Add(entry.EfiChange);
            }
            return result;
        }
internal ICollection < EfiChange > SortChangesForProcessing ( EfiChangeComparer changeComparer ) { var changes = new List < EfiChangeStableSortItem > ( Count ) ; var i = 0 ; foreach ( var change in Changes ) { changes . Add ( new EfiChangeStableSortItem ( change , i ) ) ; i ++ ; } changes . Sort ( changeComparer ) ; var result = new List < EfiChange > ( changes . Count ) ; foreach ( var entry in changes ) { result . Add ( entry . EfiChange ) ; } return result ; }
Sorts the change group using stable sort algorithm (i.e.
Sorts the change group using stable sort algorithm ( i . e .
changeComparer
EfiChangeComparer