Sorting an associative array
The array A; feel free to modify
A["a"]=6 A["the"]=9 A["artichokes"]=1 A["ham"]=2
function source
Do it
Result
___
___