public void SortByTime() { SingleBeats.Sort(delegate(SingleBeat s1, SingleBeat s2) { return(s1.Time.CompareTo(s2.Time)); }); HeldNotes.Sort(delegate(HeldNote h1, HeldNote h2) { return(h1.StartTime.CompareTo(h2.StartTime)); }); }
public void SortByApplicability() { SingleBeats.Sort(delegate(SingleBeat s1, SingleBeat s2) { return(s1.Applicability.CompareTo(s2.Applicability)); }); HeldNotes.Sort(delegate(HeldNote h1, HeldNote h2) { return(h1.Applicability.CompareTo(h2.Applicability)); }); }
public void SortByApplicabilityAndIsolationValue() { SingleBeats.Sort(delegate(SingleBeat s1, SingleBeat s2) { return(s1.IsolationValue.CompareTo(s2.IsolationValue)); }); SingleBeats.Reverse(); HeldNotes.Sort(delegate(HeldNote h1, HeldNote h2) { return(h1.Applicability.CompareTo(h2.Applicability)); }); HeldNotes.Reverse(); }