Revert "Bug fix. Ordering of events in histogram."

This reverts commit fe19e345448e66a3b61238915ef04ce86f0e01c9.