public static int AlphabeticSort(TargetableVessel first, TargetableVessel second) { if (first.vessel == null || second.vessel == null) { return(0); } return(string.Compare(first.name, second.name, StringComparison.Ordinal)); }
public static int DistanceSort(TargetableVessel first, TargetableVessel second) { if (first.vessel == null || second.vessel == null) { return(0); } return(first.distance.CompareTo(second.distance)); }
public static int DistanceSort(TargetableVessel first, TargetableVessel second) { if (first.vessel == null || second.vessel == null) return 0; return first.distance.CompareTo(second.distance); }
public static int AlphabeticSort(TargetableVessel first, TargetableVessel second) { if (first.vessel == null || second.vessel == null) return 0; return string.Compare(first.name, second.name, StringComparison.Ordinal); }