I'm saving coordinate values in the HashSet.
And I want to sort it in order in the picture above.
Below is a typical point structure, using a Hashset.
struct Point
{
public int x, y;
public Point(int x, int y)
{
this.x = x;
this.y = y;
}
}
private HashSet<Point> hashset = new HashSet<Point>();
I found a source that just sort one value.
However, i have not found a source that sort two or coordinates values.
Give me an example of how to sort the coordinates.