Python Sort Method Algorithm And Coding