Find Index In Javascript Array Sort Strings