Python Sort Array Of Strings In Javascript