for (sort keys %histogram) { ... };