Fix array sorting

Only sort associative arrays
Indicate in the HTML which arrays have been sorted