public int CompareTo(ScoreModelUnit other) { if (!LipidClass.Equals(other.LipidClass)) { return(LipidClass.CompareTo(other.LipidClass)); } if (!LipidType.Equals(other.LipidType)) { return(LipidType.CompareTo(other.LipidType)); } if (!FragmentDescription.Equals(other.FragmentDescription)) { return(String.Compare(FragmentDescription, other.FragmentDescription, StringComparison.Ordinal)); } if (!FragmentationMode.Equals(other.FragmentationMode)) { return(FragmentationMode.CompareTo(other.FragmentationMode)); } if (!FragmentationType.Equals(other.FragmentationType)) { return(FragmentationType.CompareTo(other.FragmentationType)); } return(IntensityMax.CompareTo(other.IntensityMax)); }
public int CompareTo(SpecificFragment other) { if (!LipidClass.Equals(other.LipidClass)) { return(LipidClass.CompareTo(other.LipidClass)); } if (!LipidType.Equals(other.LipidType)) { return(LipidType.CompareTo(other.LipidType)); } if (!FragmentDescription.Equals(other.FragmentDescription)) { return(String.Compare(FragmentDescription, other.FragmentDescription, StringComparison.Ordinal)); } if (!FragmentationMode.Equals(other.FragmentationMode)) { return(FragmentationMode.CompareTo(other.FragmentationMode)); } return(FragmentationType.CompareTo(other.FragmentationType)); }