String Array Sort Python Method Optional Variable