The sort function takes a list of Point objects and sorts them either by their x or y coordinate using merge sort. Also added a method set_random, that sets the coordinates to random values and a method str, that returns the coordinates as string.
3.5 KiB
3.5 KiB