Had to do some tweaks for returning the list of angles in ascending order