Sorting Arrays

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

Arrays are sorted according to the value in the array[x]["count"] field.
(... which can also be referenced as array[x].count ...)

Sort Descending
Notice the different ways I reference the count key in the underlying associative array.
I can talk to it as an indexed property ( a["count"] ), or a "data member" ( a.count ) property.