Hi,
I want to be able to sort a ArrayList of Points, for example, in one of
two (or more) ways depending of the nature of the Points in the
ArrayList. Basically I want two different comparers, both of which I
could use when I want. E.g. one to sort the points in order of their X
value and another for their Y value.
I have no trouble setting up a single comparer, but I don't know how do
accomplish the task above. Any help would be appreciated!!
For example, the code I would like to use:
if (MaxX(Points) < 0)
Points.Sort(); //By X value
else
Points.Sort(); //By Y value
Thanks in advance...
Chris Riddle