Sort Array Function In Python W3schools