How To Sort The Array In Javascript