Sort Array Function In Python Example