String Array Sort Python Function Example Code