Replace In Javascript Array Sort Strings In Alphabetical Order