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