2 using System
.Collections
;
6 class ResultSorter
: IComparer
8 private double identity
;
11 public ResultSorter(double identity
, double[] res
)
13 this.identity
= identity
;
17 public int Compare(object x
, object y
)
19 double vx
= Math
.Abs(identity
- res
[(int)x
]);
20 double vy
= Math
.Abs(identity
- res
[(int)y
]);