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