I have a list of tuples having coordinates in (x,y) format. I want to sort/arrange it in counter-clockwise direction. ex:
[(0,1),(3,1),(-1,0),(2,2)]
The arranged list should be:
[(3,1),(2,2),(0,1),(-1,0)]
Note: The list can have 'n' of tuples and (0,0) can be a part of list.