The problem in example_1.py was that the defined function didn't return teh aray x. I changed that it sorts the values in x and reutrns the sorted array.