weird sort results

0 adrian qx · October 23, 2015
I have the following elements in my array  "Mighty Mouse","McGregor","Dos Anjos","jose aldo","Weidman","weidum"," Aaa","Bbb"


when I sort I get the results below which dont make sense  why does it display jose aldo in such a position ?


Aaa,Bbb,Dos Anjos,McGregor,Mighty Mouse,Weidman,jose aldo,weidum


Post a Reply

Replies

Oldest  Newest  Rating
+1 Casper Hollemans · October 23, 2015
I think becouse tge other elements in the array hava a captial letter and jose not

- Greets
  • 1

Javascript

106,946 followers
About

A scripting language that is added to standard HTML to create interactive effects, apps, games for the browser.

Links
Moderators