Sorting Arrays

This shows an example of sorting an associative array by supplying a custom-defined sorting function to Array.sort(<evalFunction>)

Arrays are sorted according to string length
(Shorter is higher in sort order on Ascending ... and vice-versa.)

This one was extra tricky, as JavaScript associative arrays are not "enumerated."
Think of it more like assigning data-members to your on-the-fly object (since JavaScript arrays really are "objects.")
I had to write a function to convert my associative array into an indexed one, so it could be sorted.
Feel free to use it if you need to iterate through your associative array.
Sort Descending