+ 2
Hi!
If you mean sorting the data inside of an array, it will go like this:
In Unicode, numbers come before letters. Upper case letters come before lower case. Example:
["a", "1 b", 1, "A"];
Sorting would produce:
1, "1 b", "A", "a".
^ Even though the number 1 is inside of a string, JavaScript will still sort it as a numeric value.
Hope this helps, just let me know if you meant something different; such as associative arrays vs. indexed arrays.
Happy coding!



