Sort Array Function In Python Definition In Coding