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