public static int CompareByProfit(RoundTripDisplayItem a, RoundTripDisplayItem b) { return b.profit.CompareTo(a.profit); // highest profit comes first }
public static int CompareByProfit(RoundTripDisplayItem a, RoundTripDisplayItem b) { return(b.profit.CompareTo(a.profit)); // highest profit comes first }